]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: generic: Support tool ID and additional tool types
authorJason Gerecke <killertofu@gmail.com>
Thu, 20 Oct 2016 01:03:48 +0000 (18:03 -0700)
committerJiri Kosina <jkosina@suse.cz>
Thu, 20 Oct 2016 07:53:59 +0000 (09:53 +0200)
commitd78da7cbd288a3b871837eb659ded520c988d7cb
treef2e3e6882e97f766c143bccf1216af13cdfe133d
parentdc01fcbf9878fa87c1997a018c0da6a28dcf1721
HID: wacom: generic: Support tool ID and additional tool types

Devices following the new Custom HID mode specification (as well as even
some recent component sensors which use the same standard HID usage)
are capable of reporting tool ID information that we need to relay to
userspace. This patch adds support for reading and relaying the tool
type information, which is (unfortunately) split across two usages.
We also advertise the existence of tool types beyond BTN_TOOL_PEN
that might be available.

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