drm: Add drm_rotation_90_or_270()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 26 Sep 2016 16:30:46 +0000 (19:30 +0300)
committerJianxin Pan <jianxin.pan@amlogic.com>
Tue, 14 Aug 2018 13:22:27 +0000 (06:22 -0700)
commit40d3357b7b2a91333da05075e225480aee2f1b42
tree21302b072a80e8b58adc2f98987adf3ac4620777
parent93d47fe9b98d1ef46143843716682c821dbef248
drm: Add drm_rotation_90_or_270()

We have intel_rotation_90_or_270() in i915 to check if the rotation is
90 or 270 degrees. Similar checks are elsewhere in drm, so let's move
the helper into a central place and use it everwhere.

v2: Drop the BIT()
    Convert all new intel_rotation_90_or_270() calls
    Deal with superfluous code shuffling

Change-Id: I84d48ebfa010f7c28fad6e492fdda2bddd305ccf
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk> (v1)
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1474907460-10717-2-git-send-email-ville.syrjala@linux.intel.com
drivers/gpu/drm/atmel-hlcdc/atmel_hlcdc_plane.c
drivers/gpu/drm/drm_atomic_helper.c
drivers/gpu/drm/drm_crtc.c
include/drm/drm_blend.h