diff options
author | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2018-09-04 15:31:14 +0200 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2018-09-04 21:31:43 +0200 |
commit | 0d6c3011409135ea84e2a231b013a22017ff999a (patch) | |
tree | d15a6125044b26af915fca021375d61c3035086e /include | |
parent | HID: multitouch: fix Elan panels with 2 input modes declaration (diff) | |
download | linux-0d6c3011409135ea84e2a231b013a22017ff999a.tar.xz linux-0d6c3011409135ea84e2a231b013a22017ff999a.zip |
HID: core: fix grouping by application
commit f07b3c1da92d ("HID: generic: create one input report per
application type") was effectively the same as MULTI_INPUT:
hidinput->report was never set, so hidinput_match_application()
always returned null.
Fix that by testing against the real application.
Note that this breaks some old eGalax touchscreens that expect MULTI_INPUT
instead of HID_QUIRK_INPUT_PER_APP. Enable this quirk for backward
compatibility on all non-Win8 touchscreens.
link: https://bugzilla.kernel.org/show_bug.cgi?id=200847
link: https://bugzilla.kernel.org/show_bug.cgi?id=200849
link: https://bugs.archlinux.org/task/59699
link: https://github.com/NixOS/nixpkgs/issues/45165
Cc: stable@vger.kernel.org # v4.18+
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/hid.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index 834e6461a690..d44a78362942 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -526,6 +526,7 @@ struct hid_input { const char *name; bool registered; struct list_head reports; /* the list of reports */ + unsigned int application; /* application usage for this input */ }; enum hid_type { |