OMAP: DSS2: Use a macro to declare size of the fifo_size array in dispc.c
authorArchit Taneja <archit@ti.com>
Fri, 5 Aug 2011 13:36:04 +0000 (19:06 +0530)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Wed, 14 Sep 2011 15:08:24 +0000 (18:08 +0300)
commite13a138bc68259dc630cb903942975efa40d2bd9
tree95c471d6191294cb0d0f2e2b2c08554dcc0e0141
parentac01c29e5279fe31632e9118619b365514633235
OMAP: DSS2: Use a macro to declare size of the fifo_size array in dispc.c

The array size of fifo_size array in the global dispc struct is currently
hardcoded to 3. Replace this with the MAX_DSS_OVERLAYS macro in dss_features.h,
use dss_features function to get the number of overlays instead of the
ARRAY_SIZE macro in dispc_read_plane_fifo_sizes().

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