]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Perform all event processing as part of report processing
authorJason Gerecke <killertofu@gmail.com>
Tue, 21 Jul 2015 18:07:23 +0000 (11:07 -0700)
committerJiri Kosina <jkosina@suse.com>
Thu, 23 Jul 2015 12:02:43 +0000 (14:02 +0200)
commit8b34c897e1796718c4f47bf24001400aa8eec637
tree2fe8a94b455aba6f0cd6a2508d73ef9e37c3aada
parent7e67bca5c9acb12b70c55e889f189c9149b16128
HID: wacom: Perform all event processing as part of report processing

In some cases, we need access to information before it becomes available
to the 'event' handler. In particular, for some devices we cannot properly
process the finger data without first knowing the "contact count" at the
very end of the report (e.g. the Cintiq 24HDT touch screen, when forced
through the GENERIC codepath).

Since the HID subsystem doesn't provide a way to take action before 'event'
is called, we take a cue from hid-multitouch.c and add a pre-process step
within the 'report' handler that performs the same function.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/wacom_sys.c
drivers/hid/wacom_wac.c