drm/msm: change rotate/reflect constant to new DRM convention
DRM incorporates BIT macro into DRM_ROTATE_x and DRM_REFLECT_ macros.
Update drivers according to this new convention.
CRs-Fixed: 2009714
Change-Id: I8d4f17663e820ddbb22bde7eacb921aee1855693
Signed-off-by: Alan Kwong <akwong@codeaurora.org>
diff --git a/drivers/gpu/drm/msm/sde/sde_plane.c b/drivers/gpu/drm/msm/sde/sde_plane.c
index 3416396..01630cf 100644
--- a/drivers/gpu/drm/msm/sde/sde_plane.c
+++ b/drivers/gpu/drm/msm/sde/sde_plane.c
@@ -1274,10 +1274,10 @@
SDE_DEBUG_PLANE(psde, "rotation 0x%llX\n",
sde_plane_get_property(pstate, PLANE_PROP_ROTATION));
if (sde_plane_get_property(pstate, PLANE_PROP_ROTATION) &
- BIT(DRM_REFLECT_X))
+ DRM_REFLECT_X)
src_flags |= SDE_SSPP_FLIP_LR;
if (sde_plane_get_property(pstate, PLANE_PROP_ROTATION) &
- BIT(DRM_REFLECT_Y))
+ DRM_REFLECT_Y)
src_flags |= SDE_SSPP_FLIP_UD;
/* update format */
@@ -1874,7 +1874,7 @@
/* standard properties */
msm_property_install_rotation(&psde->property_info,
- (unsigned int) (BIT(DRM_REFLECT_X) | BIT(DRM_REFLECT_Y)),
+ (unsigned int) (DRM_REFLECT_X | DRM_REFLECT_Y),
PLANE_PROP_ROTATION);
msm_property_install_enum(&psde->property_info, "blend_op", 0x0, 0,