HID: wacom: store the hid_device pointers of the sibling devices
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 25 Feb 2015 16:43:39 +0000 (11:43 -0500)
committerJiri Kosina <jkosina@suse.cz>
Fri, 27 Feb 2015 07:37:52 +0000 (08:37 +0100)
commita97ac10401fe86fa30ef73315241e31d8594a651
tree1644066336b329cef62b8a77c00ff3b224ea818e
parenteef23a8441432960c89ee5bd034ad822ccd6658e
HID: wacom: store the hid_device pointers of the sibling devices

The Bamboo PAD in debug mode needs to re-route events from the debug
interface to the Pen interface. This can be easily done with
hid_input_report(), but that means that we need to keep a reference to
the various hid_devices.

There should be only one touch and one pen interface per physical tablet,
so there is no need to keep a list of hid-devices, plain pointers are
sufficient.

Tested-by: Josep Sanchez Ferreres <josep.sanchez.ferreres@est.fib.upc.edu>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Acked-by: Ping Cheng <pingc@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_sys.c
drivers/hid/wacom_wac.h