diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-05-04 04:19:12 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-06-02 03:57:24 -0400 |
commit | 9c39d17e0614d18d809ccf2c3858994feb4fcdaa (patch) | |
tree | 2a084df02ca4589a41c758431f10c1eceb969a43 /drivers/gpu/drm/omapdrm/omap_fb.c | |
parent | 18c0d6217a4898b9cae1b999e0dd37f8239ba0ae (diff) |
drm/omap: use u32 instead of enum omap_color_mode
In this step we drop 'enum omap_color_mode', and use u32 instead.
Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_fb.c')
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_fb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_fb.c b/drivers/gpu/drm/omapdrm/omap_fb.c index 6fb25d35bc0a..71b3f25e61c2 100644 --- a/drivers/gpu/drm/omapdrm/omap_fb.c +++ b/drivers/gpu/drm/omapdrm/omap_fb.c | |||
@@ -31,7 +31,7 @@ | |||
31 | 31 | ||
32 | /* DSS to DRM formats mapping */ | 32 | /* DSS to DRM formats mapping */ |
33 | static const struct { | 33 | static const struct { |
34 | enum omap_color_mode dss_format; | 34 | u32 dss_format; |
35 | uint32_t pixel_format; | 35 | uint32_t pixel_format; |
36 | } formats[] = { | 36 | } formats[] = { |
37 | /* 16bpp [A]RGB: */ | 37 | /* 16bpp [A]RGB: */ |
@@ -57,7 +57,7 @@ static const struct { | |||
57 | 57 | ||
58 | /* convert from overlay's pixel formats bitmask to an array of fourcc's */ | 58 | /* convert from overlay's pixel formats bitmask to an array of fourcc's */ |
59 | uint32_t omap_framebuffer_get_formats(uint32_t *pixel_formats, | 59 | uint32_t omap_framebuffer_get_formats(uint32_t *pixel_formats, |
60 | uint32_t max_formats, const enum omap_color_mode *supported_modes) | 60 | uint32_t max_formats, const u32 *supported_modes) |
61 | { | 61 | { |
62 | uint32_t nformats = 0; | 62 | uint32_t nformats = 0; |
63 | int i = 0; | 63 | int i = 0; |
@@ -91,7 +91,7 @@ struct omap_framebuffer { | |||
91 | struct drm_framebuffer base; | 91 | struct drm_framebuffer base; |
92 | int pin_count; | 92 | int pin_count; |
93 | const struct drm_format_info *format; | 93 | const struct drm_format_info *format; |
94 | enum omap_color_mode dss_format; | 94 | u32 dss_format; |
95 | struct plane planes[2]; | 95 | struct plane planes[2]; |
96 | /* lock for pinning (pin_count and planes.dma_addr) */ | 96 | /* lock for pinning (pin_count and planes.dma_addr) */ |
97 | struct mutex lock; | 97 | struct mutex lock; |
@@ -395,7 +395,7 @@ struct drm_framebuffer *omap_framebuffer_init(struct drm_device *dev, | |||
395 | const struct drm_format_info *format = NULL; | 395 | const struct drm_format_info *format = NULL; |
396 | struct omap_framebuffer *omap_fb = NULL; | 396 | struct omap_framebuffer *omap_fb = NULL; |
397 | struct drm_framebuffer *fb = NULL; | 397 | struct drm_framebuffer *fb = NULL; |
398 | enum omap_color_mode dss_format = 0; | 398 | u32 dss_format = 0; |
399 | unsigned int pitch = mode_cmd->pitches[0]; | 399 | unsigned int pitch = mode_cmd->pitches[0]; |
400 | int ret, i; | 400 | int ret, i; |
401 | 401 | ||