]> Pileus Git - ~andy/linux/commit
OMAPDSS: APPLY: rewrite register writing
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Tue, 15 Nov 2011 16:25:23 +0000 (18:25 +0200)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 2 Dec 2011 06:54:44 +0000 (08:54 +0200)
commit75c949653fdf77a17753ffb8462a3c458c476271
treefb52f425a314d747f19c5ea555115cc1697f3791
parentaaa874a985158383c4b394c687c716ef26288741
OMAPDSS: APPLY: rewrite register writing

The functions writing to the DISPC registers in apply.c are more complex
than needed. This patch cleans things up.

Two helper functions are added: need_isr(), which returns if an isr for
VSYNC is needed, and need_go(), which tells if there has been a write to
the shadow registers and we need to set the GO bit.

The functions that call the actual dispc write functions will set the
dirty and shadow_dirty flags themselves, instead of that being done on
the caller side. The writing functions also check if the dirty flag is
even set, and return immediately if not.

This allows us to clean up dss_write_regs().

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/apply.c