aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/sm750fb/sm750_accel.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/staging/sm750fb/sm750_accel.h')
-rw-r--r--drivers/staging/sm750fb/sm750_accel.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/staging/sm750fb/sm750_accel.h b/drivers/staging/sm750fb/sm750_accel.h
index f8dc3f120f08..c38ff4508265 100644
--- a/drivers/staging/sm750fb/sm750_accel.h
+++ b/drivers/staging/sm750fb/sm750_accel.h
@@ -34,8 +34,9 @@
#define DE_DESTINATION_Y_MASK 0xffff
#define DE_DIMENSION 0x8
-#define DE_DIMENSION_X 28:16
-#define DE_DIMENSION_Y_ET 15:0
+#define DE_DIMENSION_X_SHIFT 16
+#define DE_DIMENSION_X_MASK (0x1fff << 16)
+#define DE_DIMENSION_Y_ET_MASK 0x1fff
#define DE_CONTROL 0xC
#define DE_CONTROL_STATUS 31:31