OMAPDSS: DISPC: Reduce the number of arguments in dispc_ovl_setup()
authorArchit Taneja <archit@ti.com>
Wed, 14 Sep 2011 05:40:10 +0000 (11:10 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 30 Sep 2011 13:17:24 +0000 (16:17 +0300)
commita4273b7cca6fe7ee3807229ba256adb6cfaba0c3
treebdc5072fb8083f0e0738531f4350d5336de0a1e2
parentdc891fab115380d9dfddcd252df45a941ff9cb4e
OMAPDSS: DISPC: Reduce the number of arguments in dispc_ovl_setup()

dispc_ovl_setup() currently takes a large number of overlay arguments, most of
these are members of the overlay_info struct. Replace these arguments by
passing a overlay_info pointer instead.

In configure_overlay(), we create an overlay_info struct called new_oi, this is
a copy of the overlay cache's overlay_info member. Update the new_oi parameters
which could have been possibly changed in configure_overlay(). Pass its pointer
pointer to dispc_ovl_setup().

Signed-off-by: Archit Taneja <archit@ti.com>
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
drivers/video/omap2/dss/dispc.c
drivers/video/omap2/dss/dss.h
drivers/video/omap2/dss/manager.c