]> git.baikalelectronics.ru Git - kernel.git/commit
HID: wacom: Remove WACOM_QUIRK_NO_INPUT
authorJason Gerecke <killertofu@gmail.com>
Mon, 3 Aug 2015 17:17:05 +0000 (10:17 -0700)
committerJiri Kosina <jkosina@suse.com>
Tue, 4 Aug 2015 13:39:21 +0000 (15:39 +0200)
commit430d77f70f7582eaa2f942badd3c8feb9ae6fb17
tree5cc3c0ff459796c567c3120c68469a100caaf793
parent22567df5db23ae1aab24a1a316bc306c0a60ad82
HID: wacom: Remove WACOM_QUIRK_NO_INPUT

WACOM_QUIRK_NO_INPUT is a signal to the driver that input devices
should not be created for a particular device. This quirk was used by
the wireless receiver to prevent any devices from being created during
the initial probe (defering it instead until we got a tablet connection
event in 'wacom_wireless_work').

This quirk is not necessary now that a device_type is associated with each
device. Any input device allocated by 'wacom_allocate_inputs' which is
not necessary for a particular device is freed in 'wacom_register_inputs'.
In particular, none of the wireless receivers devices have the pen, pad,
or touch device types set so the same effect is achieved without the need
to be explicit.

We now return early in wacom_retrieve_hid_descriptor for wireless devices
(to prevent the device_type from being overridden) but since we ignore the
HID descriptor for the wireless reciever anyway, this is not an issue.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
drivers/hid/wacom_sys.c
drivers/hid/wacom_wac.c
drivers/hid/wacom_wac.h