path: root/drivers/hid
diff options
authorJiri Kosina <jkosina@suse.cz>2017-08-03 11:25:32 +0200
committerJiri Kosina <jkosina@suse.cz>2017-08-03 11:25:32 +0200
commit39bbf40227bcd37e02f7983b2d06696c10cec43a (patch)
treed521ed4bf8615226b7c77be41e12523ee7c6c582 /drivers/hid
parent957b8dffa4e3d191f0f1571d006d0e520790dcb9 (diff)
HID: multitouch: use proper symbolic constant for 0xff310076 application
0xff310076 application has been defined by 957b8dffa4e3d1 ("HID: multitouch: Support Asus T304UA media keys") as a vendor-specific application with symbolic constant HID_VD_ASUS_CUSTOM_MEDIA_KEYS, so let's make use of it. Fixes: 957b8dffa4e ("HID: multitouch: Support Asus T304UA media keys") Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid')
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-multitouch.c b/drivers/hid/hid-multitouch.c
index 6b3de7b01571..0a8689bb08e9 100644
--- a/drivers/hid/hid-multitouch.c
+++ b/drivers/hid/hid-multitouch.c
@@ -941,7 +941,7 @@ static int mt_input_mapping(struct hid_device *hdev, struct hid_input *hi,
* touchpad report descriptor. We need to treat these as an array to
* map usages to input keys.
- if (field->application == 0xff310076 &&
+ if (field->application == HID_VD_ASUS_CUSTOM_MEDIA_KEYS &&
td->mtclass.quirks & MT_QUIRK_ASUS_CUSTOM_UP &&
(usage->hid & HID_USAGE_PAGE) == HID_UP_CUSTOM) {
set_bit(EV_REP, hi->input->evbit);

Privacy Policy