diff options
author | Jason Gerecke <killertofu@gmail.com> | 2015-06-16 04:01:43 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2015-06-18 11:42:39 +0300 |
commit | 862cf5535c0cf4b39ce71a3b7e9a1c22ae4f70ae (patch) | |
tree | 3450d78b3fabbe22675771eb0350841dd8dfb1a6 /drivers/hid/wacom.h | |
parent | aa86b18cc9cd147b40412a2d57b383a5e16fe3b5 (diff) | |
download | linux-862cf5535c0cf4b39ce71a3b7e9a1c22ae4f70ae.tar.xz |
HID: wacom: Introduce a new WACOM_DEVICETYPE_PAD device_type
Historically, both the touch and pad tools would have shared the
'BTN_TOOL_FINGER' type. Any time you needed to distinguish the two, you
had to use some other bit of knowledge (e.g. that the pad was on the same
interface as the pen, and thus 'touch_max' would be zero).
To make these checks more readable, we introduce WACOM_DEVICETYPE_PAD.
Although we still have to rely on other bits of knowledge to set this
bit on the right interface (since it cannot be detected from the HID
descriptor), it can be done just once inside 'wacom_setup_device_quirks'.
This patch introduces no functional changes.
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/wacom.h')
0 files changed, 0 insertions, 0 deletions