diff options
author | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-05-16 11:05:09 +0300 |
---|---|---|
committer | Tomi Valkeinen <tomi.valkeinen@ti.com> | 2017-06-02 11:05:32 +0300 |
commit | 0bd97c42d975a1e0849105bb8f23a68490683aab (patch) | |
tree | 2cf19d4c4d1b8adf187e463cd2f7a54c09826bba /drivers/gpu/drm/omapdrm/omap_plane.c | |
parent | 218ed5358a4045382674f8feeee0efb526f9431b (diff) | |
download | linux-0bd97c42d975a1e0849105bb8f23a68490683aab.tar.bz2 |
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, memset(&info, 0, sizeof(info)); info.rotation_type = OMAP_DSS_ROT_NONE; - info.rotation = OMAP_DSS_ROT_0; + info.rotation = DRM_MODE_ROTATE_0; info.global_alpha = 0xff; info.mirror = 0; info.zorder = state->zpos; |