]> git.baikalelectronics.ru Git - kernel.git/commit
Input: elan_i2c - change the hover event from MT to ST
authorduson <dusonlin@emc.com.tw>
Tue, 7 Jul 2015 17:25:39 +0000 (10:25 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 7 Jul 2015 18:28:31 +0000 (11:28 -0700)
commita592862e120977bf7d0fc8ec02f5984006dddd7e
tree6615ce7086cc07d2529ffc793f2027aa41e6109a
parentc46cad32c2912bf9c605d7da696a3505972c00fe
Input: elan_i2c - change the hover event from MT to ST

The firmware only reports hover condition while the very first contact is
approaching the surface; the hover is not reported for the subsequent
contacts. Therefore we should not be using ABS_MT_DISTANCE to report hover
but rather its single-touch counterpart ABS_DISTANCE.

Signed-off-by: Duson Lin <dusonlin@emc.com.tw>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elan_i2c_core.c