]> git.baikalelectronics.ru Git - kernel.git/commit
HID: penmount: report only one button for PenMount 6000 USB touchscreen controller
authorAndrew Shadura <andrew.shadura@collabora.co.uk>
Thu, 29 Oct 2015 15:09:49 +0000 (16:09 +0100)
committerJiri Kosina <jkosina@suse.cz>
Thu, 10 Mar 2016 16:17:26 +0000 (17:17 +0100)
commit4517cdb32e399b58ffc7368c8a9dedeb57b1dc0b
treed7188c14cda49906ae842ea13bceabac2801c2b1
parent3dbc623e3b466914045fc4f6f45574e9ff55d2a1
HID: penmount: report only one button for PenMount 6000 USB touchscreen controller

PenMount 6000 USB resistive touchscreen controller reports it has three
buttons, while in reality it doesn't have any and doesn't support active
styli, and only generates touch events.

In penmount_input_mapping(), map only the first button (with code 0),
ignore the rest.

Signed-off-by: Andrew Shadura <andrew.shadura@collabora.co.uk>
Tested-by: Christian Gmeiner <c.gmeiner@bachmann.info
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-penmount.c