]> 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)
commitf017b3be80a227144bea18361fb844adcf1ad845
tree5cc3c0ff459796c567c3120c68469a100caaf793
parenta71174c8a1fb40c03e17c5e5c99dd24ad586b57d
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