]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: elo: clear BTN_LEFT mapping
authorJiri Kosina <jkosina@suse.cz>
Wed, 22 Nov 2017 10:19:51 +0000 (11:19 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Mar 2018 08:37:16 +0000 (09:37 +0100)
commit0c53c557f4de212696d5e94ce096ec34df437a22
tree341feabbdce3b983cbbf2ca0e4698f04e0f1f7eb
parent53165057044801541802f899ee3d415e8252b699
HID: elo: clear BTN_LEFT mapping

[ Upstream commit 9abd04af951e5734c9d5cfee9b49790844b734cf ]

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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/hid-elo.c