aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/dss/dss_features.c
diff options
context:
space:
mode:
authorTomi Valkeinen <tomi.valkeinen@ti.com>2017-05-04 11:31:56 +0300
committerTomi Valkeinen <tomi.valkeinen@ti.com>2017-06-02 10:57:26 +0300
commit41aff42ae6e3e9dbb800640fe3bb62383d4aa6e3 (patch)
treeeb1df6093c9df7aa8216f1f75304e80eb46816f2 /drivers/gpu/drm/omapdrm/dss/dss_features.c
parentdrm/omap: cleanup formats array (diff)
downloadlinux-dev-41aff42ae6e3e9dbb800640fe3bb62383d4aa6e3.tar.xz
linux-dev-41aff42ae6e3e9dbb800640fe3bb62383d4aa6e3.zip
drm/omap: rename color_mode to fourcc
Now that we use fourccs, we can also rename the 'color_mode' variables to 'fourcc'. Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/dss/dss_features.c')
-rw-r--r--drivers/gpu/drm/omapdrm/dss/dss_features.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/gpu/drm/omapdrm/dss/dss_features.c b/drivers/gpu/drm/omapdrm/dss/dss_features.c
index 32e21ed45f47..0e599710dd95 100644
--- a/drivers/gpu/drm/omapdrm/dss/dss_features.c
+++ b/drivers/gpu/drm/omapdrm/dss/dss_features.c
@@ -808,8 +808,7 @@ enum omap_overlay_caps dss_feat_get_overlay_caps(enum omap_plane_id plane)
return omap_current_dss_features->overlay_caps[plane];
}
-bool dss_feat_color_mode_supported(enum omap_plane_id plane,
- u32 color_mode)
+bool dss_feat_color_mode_supported(enum omap_plane_id plane, u32 fourcc)
{
const u32 *modes;
unsigned int i;
@@ -817,7 +816,7 @@ bool dss_feat_color_mode_supported(enum omap_plane_id plane,
modes = omap_current_dss_features->supported_color_modes[plane];
for (i = 0; modes[i]; ++i) {
- if (modes[i] == color_mode)
+ if (modes[i] == fourcc)
return true;
}