]> 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)
commit97b60fe1f356225e82c05fd62c865d5c0494fe7c
treef2e3e6882e97f766c143bccf1216af13cdfe133d
parent5360aa9891c6a223a83d59f88b13393c596ea144
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