HID: wacom: use WACOM_*_FIELD macros in wacom_usage_mapping()
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Mon, 5 Jan 2015 21:32:12 +0000 (16:32 -0500)
committerJiri Kosina <jkosina@suse.cz>
Tue, 6 Jan 2015 09:08:44 +0000 (10:08 +0100)
We introduced nice macros in wacom_wac.c to check whether a field is
a pen or a touch one.

wacom_usage_mapping() still uses it's own tests, which are not in sync with
the wacom_wac tests (.application is not checked).

That means that some legitimate fields might be filtered out from the
usage mapping, and thus will not be used properly while receiving the
events.

Signed-off-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
drivers/hid/wacom_wac.h

Simple merge
Simple merge
Simple merge