Commit 41aff42a authored by Tomi Valkeinen's avatar Tomi Valkeinen

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: default avatarTomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: default avatarLaurent Pinchart <laurent.pinchart@ideasonboard.com>
parent c2e52e32
This diff is collapsed.
......@@ -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;
}
......
......@@ -90,7 +90,7 @@ unsigned long dss_feat_get_param_min(enum dss_range_param param);
unsigned long dss_feat_get_param_max(enum dss_range_param param);
enum omap_overlay_caps dss_feat_get_overlay_caps(enum omap_plane_id plane);
bool dss_feat_color_mode_supported(enum omap_plane_id plane,
u32 color_mode);
u32 fourcc);
u32 dss_feat_get_buffer_size_unit(void); /* in bytes */
u32 dss_feat_get_burst_size_unit(void); /* in bytes */
......
......@@ -268,7 +268,7 @@ struct omap_overlay_info {
u16 screen_width;
u16 width;
u16 height;
u32 color_mode;
u32 fourcc;
u8 rotation;
enum omap_dss_rotation_type rotation_type;
bool mirror;
......@@ -316,7 +316,7 @@ struct omap_dss_writeback_info {
u16 buf_width;
u16 width;
u16 height;
u32 color_mode;
u32 fourcc;
u8 rotation;
enum omap_dss_rotation_type rotation_type;
bool mirror;
......
......@@ -132,7 +132,7 @@ void omap_framebuffer_update_scanout(struct drm_framebuffer *fb,
struct plane *plane = &omap_fb->planes[0];
uint32_t x, y, orient = 0;
info->color_mode = fb->format->format;
info->fourcc = fb->format->format;
info->pos_x = win->crtc_x;
info->pos_y = win->crtc_y;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment