aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/omapdrm/omap_fb.c
diff options
context:
space:
mode:
authorJoonas Lahtinen <joonas.lahtinen@linux.intel.com>2015-10-01 03:00:58 -0400
committerDaniel Vetter <daniel.vetter@ffwll.ch>2015-10-05 09:32:51 -0400
commit14152c8d30bbe5155d0438feb0a1931aee0e5bce (patch)
tree95413eb6b55273473746f8d65a8c93720c75eaad /drivers/gpu/drm/omapdrm/omap_fb.c
parent6220907089cc3eb4ab2fa7073bbf617b019666c5 (diff)
drm: Use DRM_ROTATE_MASK and DRM_REFLECT_MASK
Avoid magic numbers and use the introduced defines. Cc: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Diffstat (limited to 'drivers/gpu/drm/omapdrm/omap_fb.c')
-rw-r--r--drivers/gpu/drm/omapdrm/omap_fb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_fb.c b/drivers/gpu/drm/omapdrm/omap_fb.c
index 51b1219af87f..636a1f921569 100644
--- a/drivers/gpu/drm/omapdrm/omap_fb.c
+++ b/drivers/gpu/drm/omapdrm/omap_fb.c
@@ -171,7 +171,7 @@ void omap_framebuffer_update_scanout(struct drm_framebuffer *fb,
171 uint32_t w = win->src_w; 171 uint32_t w = win->src_w;
172 uint32_t h = win->src_h; 172 uint32_t h = win->src_h;
173 173
174 switch (win->rotation & 0xf) { 174 switch (win->rotation & DRM_ROTATE_MASK) {
175 default: 175 default:
176 dev_err(fb->dev->dev, "invalid rotation: %02x", 176 dev_err(fb->dev->dev, "invalid rotation: %02x",
177 (uint32_t)win->rotation); 177 (uint32_t)win->rotation);
@@ -209,7 +209,7 @@ void omap_framebuffer_update_scanout(struct drm_framebuffer *fb,
209 info->rotation_type = OMAP_DSS_ROT_TILER; 209 info->rotation_type = OMAP_DSS_ROT_TILER;
210 info->screen_width = omap_gem_tiled_stride(plane->bo, orient); 210 info->screen_width = omap_gem_tiled_stride(plane->bo, orient);
211 } else { 211 } else {
212 switch (win->rotation & 0xf) { 212 switch (win->rotation & DRM_ROTATE_MASK) {
213 case 0: 213 case 0:
214 case BIT(DRM_ROTATE_0): 214 case BIT(DRM_ROTATE_0):
215 /* OK */ 215 /* OK */