drm/omap: change supported_modes to an array
enum omap_color_mode is a bitmask, so at the moment we present the supported color modes as mask. To be able to move to fourccs, we need to use an array to present the supported color modes. As a first step towards fourccs, this patch changes the code to use an array to store the enums. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
@@ -1140,7 +1140,7 @@ static u32 dispc_ovl_get_burst_size(enum omap_plane_id plane)
|
||||
return unit * 8;
|
||||
}
|
||||
|
||||
static enum omap_color_mode dispc_ovl_get_color_modes(enum omap_plane_id plane)
|
||||
static const enum omap_color_mode *dispc_ovl_get_color_modes(enum omap_plane_id plane)
|
||||
{
|
||||
return dss_feat_get_supported_color_modes(plane);
|
||||
}
|
||||
|
Reference in New Issue
Block a user