]> git.baikalelectronics.ru Git - kernel.git/commit
Input: alps - use single touch data when v3 mt data contains only one finger
authorHans de Goede <hdegoede@redhat.com>
Sat, 26 Jul 2014 05:46:53 +0000 (22:46 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 26 Jul 2014 21:03:17 +0000 (14:03 -0700)
commit032f3c323a1527037768b14953ce1b49636f22fb
treee45ad65ec623467afcef4237a88f112adc3d2fd1
parenteecbc53cf1e219f7b54487f2e15af2361d967997
Input: alps - use single touch data when v3 mt data contains only one finger

For v3 protocol devices, use the more accurate single touch data when the
mt data contains only one finger. Note the mt data reporting a finger count
of 1 should never happen, but better safe then sorry.

This brings the v3 bitmap handling in line with what the v4 code does,
allowing to factor out the common bits into a helper function.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/alps.c