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>
This commit is contained in:
Tomi Valkeinen
2017-05-04 11:19:12 +03:00
parent 18c0d6217a
commit 9c39d17e06
6 changed files with 35 additions and 35 deletions

View File

@@ -31,7 +31,7 @@
/* DSS to DRM formats mapping */
static const struct {
enum omap_color_mode dss_format;
u32 dss_format;
uint32_t pixel_format;
} formats[] = {
/* 16bpp [A]RGB: */
@@ -57,7 +57,7 @@ static const struct {
/* convert from overlay's pixel formats bitmask to an array of fourcc's */
uint32_t omap_framebuffer_get_formats(uint32_t *pixel_formats,
uint32_t max_formats, const enum omap_color_mode *supported_modes)
uint32_t max_formats, const u32 *supported_modes)
{
uint32_t nformats = 0;
int i = 0;
@@ -91,7 +91,7 @@ struct omap_framebuffer {
struct drm_framebuffer base;
int pin_count;
const struct drm_format_info *format;
enum omap_color_mode dss_format;
u32 dss_format;
struct plane planes[2];
/* lock for pinning (pin_count and planes.dma_addr) */
struct mutex lock;
@@ -395,7 +395,7 @@ struct drm_framebuffer *omap_framebuffer_init(struct drm_device *dev,
const struct drm_format_info *format = NULL;
struct omap_framebuffer *omap_fb = NULL;
struct drm_framebuffer *fb = NULL;
enum omap_color_mode dss_format = 0;
u32 dss_format = 0;
unsigned int pitch = mode_cmd->pitches[0];
int ret, i;