]> 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)
commit3a09671738a7790c88ea7da321214e3dcda43385
tree2fe8a94b455aba6f0cd6a2508d73ef9e37c3aada
parentac59e767725eeb7586ad90d6bca26c20e9a0cfdf
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