From: Dmitry Torokhov Date: Mon, 9 Mar 2015 05:30:43 +0000 (-0700) Subject: Input: synaptics - fix middle button on Lenovo 2015 products X-Git-Tag: v3.2.69~110 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=479e286fb6e54aa95f90cdb92efa9c8a0a188808;p=pandora-kernel.git Input: synaptics - fix middle button on Lenovo 2015 products commit dc5465dc8a6d5cae8a0e1d8826bdcb2e4cb261ab upstream. 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. Signed-off-by: Benjamin Tissoires Acked-by: Hans de Goede Signed-off-by: Dmitry Torokhov [bwh: Backported to 3.2: open-code GENMASK()] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed