OSDN Git Service

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)
commit06324e0cb28e06cd7cf609d7c3099b12841a5dd6
tree2fe8a94b455aba6f0cd6a2508d73ef9e37c3aada
parent2bdd163cfd262914e8f6152e37aebea2034f801e
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