drm/omap: add drm_rotation_to_tiler helper()
authorTomi Valkeinen <tomi.valkeinen@ti.com>
Mon, 15 May 2017 09:57:46 +0000 (12:57 +0300)
committerTomi Valkeinen <tomi.valkeinen@ti.com>
Fri, 2 Jun 2017 08:04:07 +0000 (11:04 +0300)
commit8958aeb9c7bc86c89667af049243c47836111ab7
treebbf72ddaa42c2a22457be9a23c38dccf7743cee0
parent41aff42ae6e3e9dbb800640fe3bb62383d4aa6e3
drm/omap: add drm_rotation_to_tiler helper()

Add a helper function to convert DRM rotation to TILER rotation.

Also drop a error print that can never happen, as the DRM framework
makes sure the rotation is valid.

Signed-off-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/gpu/drm/omapdrm/omap_fb.c