]> git.baikalelectronics.ru Git - kernel.git/commit
Input: synaptics - fix middle button on Lenovo 2015 products
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 9 Mar 2015 05:30:43 +0000 (22:30 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 9 Mar 2015 06:34:34 +0000 (23:34 -0700)
commitdacbe2cf90bd81cf3d254b9f279552df880fb0fa
tree4ab70ec5d92765f5b8e7dbcd3b2f004e20cfb852
parent7a11742674e3b127522fa800613bba2dc8ddf4e1
Input: synaptics - fix middle button on Lenovo 2015 products

On the X1 Carbon 3rd gen (with a 2015 broadwell cpu), the physical middle
button of the trackstick (attached to the touchpad serio device, of course)
seems to get lost.

Actually, the touchpads reports 3 extra buttons, which falls in the switch
below to the '2' case. Let's handle the case of odd numbers also, so that
the middle button finds its way back.

Cc: stable@vger.kernel.org
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