]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
HID: wacom: Consult the application usage when determining field type
authorJason Gerecke <killertofu@gmail.com>
Mon, 24 Nov 2014 23:32:12 +0000 (15:32 -0800)
committerJiri Kosina <jkosina@suse.cz>
Thu, 27 Nov 2014 13:45:25 +0000 (14:45 +0100)
commitc376e7167e0ff390e07d60b4320398c3baae72a6
treed7dbf71096ab60c27b59ec1152d0724a228e2691
parent954df6ad00ea2ba732e2e7ae6a68b3111eee4e09
HID: wacom: Consult the application usage when determining field type

It is not necessarily sufficient to look only at the physical and logical
usages when determining if a field is for the pen or touch. Some fields
are not contained in a sub-collection and thus only have an application
usage. Not checking the application usage in such cases causes us to
ignore the field entirely, which may lead to incorrect behavior.

Signed-off-by: Jason Gerecke <killertofu@gmail.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c