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)
commitdc5465dc8a6d5cae8a0e1d8826bdcb2e4cb261ab
tree4ab70ec5d92765f5b8e7dbcd3b2f004e20cfb852
parent02e07492cdfae9c86e3bd21c0beec88dbcc1e9e8
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