Browse Source

disp: msm: rotator: fix typecast error

This change fix typecast error seen during
version comparison.

Change-Id: I7c3f98d45742ab4b0f5c13bd00b174507205464a
Signed-off-by: Gaurav LNU <[email protected]>
Gaurav LNU 1 year ago
parent
commit
e5bd17da29
1 changed files with 1 additions and 1 deletions
  1. 1 1
      rotator/sde_rotator_base.h

+ 1 - 1
rotator/sde_rotator_base.h

@@ -33,7 +33,7 @@
 	(SDE_GET_MAJOR_MINOR(rev1) == SDE_GET_MAJOR_MINOR(rev2))
 
 #define SDE_MDP_REV(major, minor, step) \
-	((((major) & 0x000F) << 28) | \
+	((u32)(((major) & 0x000F) << 28) | \
 	 (((minor) & 0x0FFF) << 16) | \
 	  ((step)  & 0xFFFF))