]> 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)
commit09a28c09206b82d113359c8c0f252f4d92653292
tree45a810e2eabdf87e9aaade33918e6790a99e3d85
parent270b26e9d58447fee187c0db5ea79662271fe778
HID: multitouch: fix Elan panels with 2 input modes declaration

When implementing commit 328aa0e22c61 ("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: 328aa0e22c61 ("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