diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-05-16 04:05:09 -0400 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-06-02 04:05:32 -0400 |
commit | 0bd97c42d975a1e0849105bb8f23a68490683aab (patch) | |
tree | 2cf19d4c4d1b8adf187e463cd2f7a54c09826bba /drivers/gpu/drm/omapdrm/omap_plane.c | |
parent | 218ed5358a4045382674f8feeee0efb526f9431b (diff) |
drm/omap: use DRM_MODE_ROTATE_* instead of OMAP_DSS_ROT_*
At the moment the dispc driver uses a custom enum for rotation. Change
it to use the DRM's DRM_MODE_ROTATE_*.
Note that mirroring is at the moment handled as a separate boolean in
the dispc driver, so we only use the DRM_MODE_ROTATE_* values.
Note, DSS HW uses clockwise rotation, DRM counter-clockwise.
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_plane.c')
-rw-r--r-- | drivers/gpu/drm/omapdrm/omap_plane.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/omapdrm/omap_plane.c b/drivers/gpu/drm/omapdrm/omap_plane.c index 08a446463afa..688b358a13e5 100644 --- a/drivers/gpu/drm/omapdrm/omap_plane.c +++ b/drivers/gpu/drm/omapdrm/omap_plane.c | |||
@@ -65,7 +65,7 @@ static void omap_plane_atomic_update(struct drm_plane *plane, | |||
65 | 65 | ||
66 | memset(&info, 0, sizeof(info)); | 66 | memset(&info, 0, sizeof(info)); |
67 | info.rotation_type = OMAP_DSS_ROT_NONE; | 67 | info.rotation_type = OMAP_DSS_ROT_NONE; |
68 | info.rotation = OMAP_DSS_ROT_0; | 68 | info.rotation = DRM_MODE_ROTATE_0; |
69 | info.global_alpha = 0xff; | 69 | info.global_alpha = 0xff; |
70 | info.mirror = 0; | 70 | info.mirror = 0; |
71 | info.zorder = state->zpos; | 71 | info.zorder = state->zpos; |