]> git.baikalelectronics.ru Git - kernel.git/commit
HID: elo: clear BTN_LEFT mapping
authorJiri Kosina <jkosina@suse.cz>
Wed, 22 Nov 2017 10:19:51 +0000 (11:19 +0100)
committerJiri Kosina <jkosina@suse.cz>
Fri, 24 Nov 2017 13:40:23 +0000 (14:40 +0100)
commit44dfa126d0aeedc9269bae24466d6aa47127c0e2
tree2eff2f8d420d6ca59fc41f094b2311a54827c445
parent7c8cd8c52c133b0872772c14152a64b3d962e1be
HID: elo: clear BTN_LEFT mapping

ELO devices have one Button usage in GenDesk field, which makes hid-input map
it to BTN_LEFT; that confuses userspace, which then considers the device to be
a mouse/touchpad instead of touchscreen.

Fix that by unmapping BTN_LEFT and keeping only BTN_TOUCH in place.

Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-elo.c