diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-02-20 21:42:43 -0800 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2017-04-03 16:24:30 -0700 |
commit | 272c03bb19018a03e50be44b30b4c7485918b8a2 (patch) | |
tree | f09dd870180d27d5cda5679b6073a77e61e73514 /drivers/input/touchscreen/eeti_ts.c | |
parent | 720bebdff23ed1a9866e737ccdadbf995f6cac7a (diff) | |
download | linux-272c03bb19018a03e50be44b30b4c7485918b8a2.tar.gz linux-272c03bb19018a03e50be44b30b4c7485918b8a2.tar.bz2 linux-272c03bb19018a03e50be44b30b4c7485918b8a2.zip |
Input: eeti_ts - use BIT(n)
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>
Diffstat (limited to 'drivers/input/touchscreen/eeti_ts.c')
-rw-r--r-- | drivers/input/touchscreen/eeti_ts.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/input/touchscreen/eeti_ts.c b/drivers/input/touchscreen/eeti_ts.c index 74d57ef68663..26b52496748a 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) |