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)
commitd97a552210320d3bec8ee22b8ccdb1d6d189482a
tree8ceb48b81a56875c769dd276194f6c3c6c4fee1e
parent0349678ccd74d16c1f2bb58ecafec13ef7110e36
HID: wacom: use WACOM_*_FIELD macros in wacom_usage_mapping()

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