summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/mms114.c
diff options
context:
space:
mode:
authorAndi Shyti <andi.shyti@samsung.com>2018-01-29 20:44:44 +0100
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2018-01-30 19:08:16 +0100
commit7546db025f265fc0d79c754e912d5fb5fcab5b89 (patch)
tree1a000495bba0c06d091099b674b19cad405978c0 /drivers/input/touchscreen/mms114.c
parentInput: mms114 - replace mdelay with msleep (diff)
downloadlinux-7546db025f265fc0d79c754e912d5fb5fcab5b89.tar.xz
linux-7546db025f265fc0d79c754e912d5fb5fcab5b89.zip
Input: mms114 - use BIT() macro instead of explicit shifting
Signed-off-by: Andi Shyti <andi.shyti@samsung.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/touchscreen/mms114.c')
-rw-r--r--drivers/input/touchscreen/mms114.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/mms114.c b/drivers/input/touchscreen/mms114.c
index 7b1307c1374b..1483af9e3d05 100644
--- a/drivers/input/touchscreen/mms114.c
+++ b/drivers/input/touchscreen/mms114.c
@@ -21,7 +21,7 @@
/* Write only registers */
#define MMS114_MODE_CONTROL 0x01
#define MMS114_OPERATION_MODE_MASK 0xE
-#define MMS114_ACTIVE (1 << 1)
+#define MMS114_ACTIVE BIT(1)
#define MMS114_XY_RESOLUTION_H 0x02
#define MMS114_X_RESOLUTION 0x03