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)
commitf85c9dc678a5e17f49805035f5b327ed134c4237
treef2e3e6882e97f766c143bccf1216af13cdfe133d
parent82527da319ee41e1e896f6c1290c83ecbc892a69
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