Skip to content

Commit 39bbf40

Browse files
author
Jiri Kosina
committed
HID: multitouch: use proper symbolic constant for 0xff310076 application
0xff310076 application has been defined by 957b8df ("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: 957b8df ("HID: multitouch: Support Asus T304UA media keys") Signed-off-by: Jiri Kosina <[email protected]>
1 parent 957b8df commit 39bbf40

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/hid-multitouch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -941,7 +941,7 @@ static int mt_input_mapping(struct hid_device *hdev, struct hid_input *hi,
941941
* touchpad report descriptor. We need to treat these as an array to
942942
* map usages to input keys.
943943
*/
944-
if (field->application == 0xff310076 &&
944+
if (field->application == HID_VD_ASUS_CUSTOM_MEDIA_KEYS &&
945945
td->mtclass.quirks & MT_QUIRK_ASUS_CUSTOM_UP &&
946946
(usage->hid & HID_USAGE_PAGE) == HID_UP_CUSTOM) {
947947
set_bit(EV_REP, hi->input->evbit);

0 commit comments

Comments
 (0)