Input: eeti_ts - use BIT(n)
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 21 Feb 2017 05:42:43 +0000 (21:42 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 3 Apr 2017 23:24:30 +0000 (16:24 -0700)
Use idiomatic BIT(n) to form single-bit masks.

Reviewed-by: Daniel Mack <daniel@zonque.org>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/eeti_ts.c

index 74d57ef686632b949affab93107e10029d2927c1..26b52496748a9f2dbdcf69d5acf2ae64915e19a1 100644 (file)
@@ -54,10 +54,10 @@ struct eeti_ts {
 #define EETI_TS_BITDEPTH       (11)
 #define EETI_MAXVAL            ((1 << (EETI_TS_BITDEPTH + 1)) - 1)
 
-#define REPORT_BIT_PRESSED     (1 << 0)
-#define REPORT_BIT_AD0         (1 << 1)
-#define REPORT_BIT_AD1         (1 << 2)
-#define REPORT_BIT_HAS_PRESSURE        (1 << 6)
+#define REPORT_BIT_PRESSED     BIT(0)
+#define REPORT_BIT_AD0         BIT(1)
+#define REPORT_BIT_AD1         BIT(2)
+#define REPORT_BIT_HAS_PRESSURE        BIT(6)
 #define REPORT_RES_BITS(v)     (((v) >> 1) + EETI_TS_BITDEPTH)
 
 static inline int eeti_ts_irq_active(struct eeti_ts *eeti)