diff options
author | Joonas Lahtinen <joonas.lahtinen@linux.intel.com> | 2016-07-29 01:50:05 -0400 |
---|---|---|
committer | Sean Paul <seanpaul@chromium.org> | 2016-08-08 14:17:56 -0400 |
commit | 31ad61e4afa53a7b2e364f7c021546fbc6ce0d85 (patch) | |
tree | f08d7ac2be97f1d6c961553f0027e4b0e5310423 /include/drm | |
parent | fcc60b413d14dd06ddbd79ec50e83c4fb2a097ba (diff) |
drm: BIT(DRM_ROTATE_?) -> DRM_ROTATE_?
Only property creation uses the rotation as an index, so convert the
to figure the index when needed.
v2: Use the new defines to build the _MASK defines (Sean)
Cc: intel-gfx@lists.freedesktop.org
Cc: linux-arm-msm@vger.kernel.org
Cc: freedreno@lists.freedesktop.org
Cc: malidp@foss.arm.com
Cc: David Airlie <airlied@linux.ie>
Cc: Daniel Vetter <daniel.vetter@ffwll.ch>
Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Liviu Dudau <Liviu.Dudau@arm.com>
Cc: Sean Paul <seanpaul@chromium.org>
Acked-by: Liviu Dudau <Liviu.Dudau@arm.com>
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com> (v1)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: http://patchwork.freedesktop.org/patch/msgid/1469771405-17653-1-git-send-email-joonas.lahtinen@linux.intel.com
Diffstat (limited to 'include/drm')
-rw-r--r-- | include/drm/drm_crtc.h | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 44e070800b6d..6c12fec20e37 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -83,14 +83,15 @@ static inline uint64_t I642U64(int64_t val) | |||
83 | * specified amount in degrees in counter clockwise direction. DRM_REFLECT_X and | 83 | * specified amount in degrees in counter clockwise direction. DRM_REFLECT_X and |
84 | * DRM_REFLECT_Y reflects the image along the specified axis prior to rotation | 84 | * DRM_REFLECT_Y reflects the image along the specified axis prior to rotation |
85 | */ | 85 | */ |
86 | #define DRM_ROTATE_MASK 0x0f | 86 | #define DRM_ROTATE_0 BIT(0) |
87 | #define DRM_ROTATE_0 0 | 87 | #define DRM_ROTATE_90 BIT(1) |
88 | #define DRM_ROTATE_90 1 | 88 | #define DRM_ROTATE_180 BIT(2) |
89 | #define DRM_ROTATE_180 2 | 89 | #define DRM_ROTATE_270 BIT(3) |
90 | #define DRM_ROTATE_270 3 | 90 | #define DRM_ROTATE_MASK (DRM_ROTATE_0 | DRM_ROTATE_90 | \ |
91 | #define DRM_REFLECT_MASK (~DRM_ROTATE_MASK) | 91 | DRM_ROTATE_180 | DRM_ROTATE_270) |
92 | #define DRM_REFLECT_X 4 | 92 | #define DRM_REFLECT_X BIT(4) |
93 | #define DRM_REFLECT_Y 5 | 93 | #define DRM_REFLECT_Y BIT(5) |
94 | #define DRM_REFLECT_MASK (DRM_REFLECT_X | DRM_REFLECT_Y) | ||
94 | 95 | ||
95 | enum drm_connector_force { | 96 | enum drm_connector_force { |
96 | DRM_FORCE_UNSPECIFIED, | 97 | DRM_FORCE_UNSPECIFIED, |