From: Dmitry Torokhov Date: Tue, 21 Feb 2017 05:42:43 +0000 (-0800) Subject: Input: eeti_ts - use BIT(n) X-Git-Tag: v4.14-rc1~4^2~36^2~83 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=272c03bb19018a03e50be44b30b4c7485918b8a2;p=platform%2Fkernel%2Flinux-rpi.git Input: eeti_ts - use BIT(n) Use idiomatic BIT(n) to form single-bit masks. Reviewed-by: Daniel Mack Signed-off-by: Dmitry Torokhov --- diff --git a/drivers/input/touchscreen/eeti_ts.c b/drivers/input/touchscreen/eeti_ts.c index 74d57ef..26b5249 100644 --- a/drivers/input/touchscreen/eeti_ts.c +++ b/drivers/input/touchscreen/eeti_ts.c @@ -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)