]> git.baikalelectronics.ru Git - kernel.git/commit
HID: multitouch: fix Elan panels with 2 input modes declaration
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tue, 4 Sep 2018 13:31:12 +0000 (15:31 +0200)
committerJiri Kosina <jkosina@suse.cz>
Tue, 4 Sep 2018 19:31:21 +0000 (21:31 +0200)
commited6eaa568a0d0bc8a77aa963b6762ad3f91dce6a
tree45a810e2eabdf87e9aaade33918e6790a99e3d85
parentaf96584268087a6019d2b09d6cff2923d44dc425
HID: multitouch: fix Elan panels with 2 input modes declaration

When implementing commit 33437b27d0a8 ("HID: multitouch: simplify
the settings of the various features"), I wrongly removed a test
that made sure we never try to set the second InputMode feature
to something else than 0.

This broke badly some recent Elan panels that now forget to send the
click button in some area of the touchpad.

Link: https://bugzilla.kernel.org/show_bug.cgi?id=200899
Fixes: 33437b27d0a8 ("HID: multitouch: simplify the settings of the various features")
Cc: stable@vger.kernel.org # v4.18+
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-multitouch.c