]> git.karo-electronics.de Git - linux-beck.git/commit
HID: wacom: remove hardcoded WACOM_QUIRK_MULTI_INPUT
authorPing Cheng <pinglinux@gmail.com>
Fri, 20 Mar 2015 21:57:00 +0000 (14:57 -0700)
committerJiri Kosina <jkosina@suse.cz>
Thu, 2 Apr 2015 12:09:59 +0000 (14:09 +0200)
commitf3586d2f819af6dbe5b08d2a6f1d22b1a97e2b64
treee5885fca2b4aabb63e604bf9109a899155f6cb44
parent1fd29be5cede285e673d3ed73d9ed9db59536b33
HID: wacom: remove hardcoded WACOM_QUIRK_MULTI_INPUT

The quirk was added for devices that support both pen and touch.  It decides if
a device supports multiple inputs by hardcoded feature type. However, for some
devices, we do not know if they support both before accessing their HID
descriptors.

This patch relies on dynamically assigned device_type to make the decision.
Also, we make it certain that wacom_wac->shared is always created. That is, the
driver will not be loaded if it fails to create wacom_wac->shared.

Signed-off-by: Ping Cheng <pingc@wacom.com>
Reviewed-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_sys.c
drivers/hid/wacom_wac.c
drivers/hid/wacom_wac.h