]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: generic: Recognize WACOM_HID_WD_PEN as a type of pen collection
authorJason Gerecke <killertofu@gmail.com>
Wed, 18 Oct 2017 15:27:13 +0000 (08:27 -0700)
committerJiri Kosina <jkosina@suse.cz>
Thu, 19 Oct 2017 08:19:07 +0000 (10:19 +0200)
commit8118aa4072d03d1947a4667416231fa70eb9f9c1
tree40788ebf8cbdc7da879dc8300503c9cfebd2fb78
parentb5963074b12019928f9b676eb5fc35d82919f809
HID: wacom: generic: Recognize WACOM_HID_WD_PEN as a type of pen collection

The WACOM_PEN_FIELD macro is used to determine if a given HID field should be
associated with pen input. This field includes several known collection types
that Wacom pen data is contained in, but the WACOM_HID_WD_PEN application
collection type is notably missing. This can result in fields within this
kind of collection being completely ignored by the `wacom_usage_mapping`
function, preventing the later '*_event' functions from being notified about
changes to their value.

Fixes: 3b2c38fe77 ("HID: wacom: generic: Support and use 'Custom HID' mode and usages")
Fixes: 839402503c ("HID: wacom: generic: add vendor defined touch")
Cc: stable@vger.kernel.org
Reviewed-by: Ping Cheng <ping.cheng@wacom.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.h