|
@@ -171,7 +171,7 @@ void omap_framebuffer_update_scanout(struct drm_framebuffer *fb,
|
|
|
uint32_t w = win->src_w;
|
|
|
uint32_t h = win->src_h;
|
|
|
|
|
|
- switch (win->rotation & 0xf) {
|
|
|
+ switch (win->rotation & DRM_ROTATE_MASK) {
|
|
|
default:
|
|
|
dev_err(fb->dev->dev, "invalid rotation: %02x",
|
|
|
(uint32_t)win->rotation);
|
|
@@ -209,7 +209,7 @@ void omap_framebuffer_update_scanout(struct drm_framebuffer *fb,
|
|
|
info->rotation_type = OMAP_DSS_ROT_TILER;
|
|
|
info->screen_width = omap_gem_tiled_stride(plane->bo, orient);
|
|
|
} else {
|
|
|
- switch (win->rotation & 0xf) {
|
|
|
+ switch (win->rotation & DRM_ROTATE_MASK) {
|
|
|
case 0:
|
|
|
case BIT(DRM_ROTATE_0):
|
|
|
/* OK */
|