]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit539c4b88146cc320aee18b08ebb43ab57d523dcc
tree6615ce7086cc07d2529ffc793f2027aa41e6109a
parenta5cba18c4de288335a975b5d57b68f6787330985
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