HID: wacom: Initialize MT slots for generic devices at post_parse_hid
authorJason Gerecke <killertofu@gmail.com>
Fri, 5 Dec 2014 21:37:32 +0000 (13:37 -0800)
committerJiri Kosina <jkosina@suse.cz>
Wed, 10 Dec 2014 09:50:48 +0000 (10:50 +0100)
commitb58ba1ba1af9cfbad6f3af4c4fc3575d9aeae542
treee81f891a3b28e7dfb29675c58bf2e0de844137b2
parentecd618dc25582923add5d7abfbb3b9aeaf51e2ac
HID: wacom: Initialize MT slots for generic devices at post_parse_hid

If a HID descriptor places HID_DG_CONTACTID before HID_DG_X and HID_DG_Y then
the ABS_X and ABS_Y will not be automatically initialized by the call to
input_mt_init_slots. To ensure that this is not a problem, we relocate that
call to occur after HID parsing has been completed and we've initalized all the
multitouch axes.

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