]> git.baikalelectronics.ru Git - kernel.git/commit
Input: ar1021_i2c - use BIT to check for a bit
authorMartin Kepplinger <martink@posteo.de>
Mon, 1 May 2017 17:13:47 +0000 (10:13 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 1 May 2017 19:30:00 +0000 (12:30 -0700)
commita371c1031c8a8204d821fb57c2f83b8c9f09342a
treef9f4c54bec7e89928f90b22d64bde02f39d062ca
parent4fb4a2e15dd0d2b5632080ceaa6735cfd4a46d1b
Input: ar1021_i2c - use BIT to check for a bit

The MSB for the first byte of touch data transmission is always 1. Make
it a little more obvious we're testing this bit by using BIT(7).

Signed-off-by: Martin Kepplinger <martink@posteo.de>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/ar1021_i2c.c