]> git.baikalelectronics.ru Git - kernel.git/commit
Input: synaptics - remove TOPBUTTONPAD property for Lenovos 2015
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Mon, 9 Mar 2015 05:34:50 +0000 (22:34 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 9 Mar 2015 06:36:53 +0000 (23:36 -0700)
commitdf81b4321f0aa8b37a2752bf6245603d4b69c8f5
tree9ca37c5656106dbe5a712a0f93bfceed8334129e
parentf6a1681ee8b95695e0ff0cfeeaf63507a9e62039
Input: synaptics - remove TOPBUTTONPAD property for Lenovos 2015

The 2015 series of the Lenovo thinkpads added back the hardware buttons on
top of the touchpad for the trackstick.

Unfortunately, Lenovo used the PNPIDs that are supposed to be "5 buttons"
touchpads, so the new laptops also have the INPUT_PROP_TOPBUTTONPAD. Yay!

Instead of manually removing each of the new ones, or hoping that we know
all the current ones, we can consider that the PNPIDs list that were given
contains touchpads that have the trackstick buttons, either physically
wired to them, or emulated with the top software button property.

Thanks to the extra buttons capability in query $10, we can reliably detect
the physical buttons from the software ones, and so we can remove the
TOPBUTTONPAD property even if it was declared as such.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/synaptics.c