Input: elants_i2c - support palm detection
authorJohnny Chuang <johnny.chuang@emc.com.tw>
Thu, 9 Apr 2020 19:42:42 +0000 (12:42 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 15 Apr 2020 04:28:34 +0000 (21:28 -0700)
commitf27ad8932725f8dd0cd1a46763de4a40377b1ae6
tree2169db2c76cc6a1e50e1272350348ee09d027b30
parentcd510679f4b588b7726fc8b25e5a0afd6f889b14
Input: elants_i2c - support palm detection

Elan uses the least significant bit of byte 33 to signal the type of
contact (finger versus palm). The default value is 1 for all firmwares,
which is reported as MT_TOOL_FINGER. If firmware supports palm detection,
the bit will change to 0 and the driver will report such contact as
MT_TOOL_PALM.

Signed-off-by: Johnny Chuang <johnny.chuang@emc.com.tw>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Link: https://lore.kernel.org/r/1585551756-29066-1-git-send-email-johnny.chuang.emc@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/elants_i2c.c