Skip to content

Commit 1fbf74e

Browse files
jprvitaJiri Kosina
authored andcommitted
HID: multitouch: Support HID_GD_WIRELESS_RADIO_CTLS
Some keyboard + touchpad devices have the Microsoft Win8 Wireless Radio Controls extensions Usage Page define in the touchpad report descriptor, so we need to support them in this driver. Signed-off-by: João Paulo Rechi Vita <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent a9d0683 commit 1fbf74e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

drivers/hid/hid-multitouch.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,8 @@ static int mt_input_mapping(struct hid_device *hdev, struct hid_input *hi,
922922
field->application != HID_DG_PEN &&
923923
field->application != HID_DG_TOUCHPAD &&
924924
field->application != HID_GD_KEYBOARD &&
925-
field->application != HID_CP_CONSUMER_CONTROL)
925+
field->application != HID_CP_CONSUMER_CONTROL &&
926+
field->application != HID_GD_WIRELESS_RADIO_CTLS)
926927
return -1;
927928

928929
/*
@@ -1133,6 +1134,9 @@ static int mt_input_configured(struct hid_device *hdev, struct hid_input *hi)
11331134
case HID_CP_CONSUMER_CONTROL:
11341135
suffix = "Consumer Control";
11351136
break;
1137+
case HID_GD_WIRELESS_RADIO_CTLS:
1138+
suffix = "Wireless Radio Control";
1139+
break;
11361140
default:
11371141
suffix = "UNKNOWN";
11381142
break;

0 commit comments

Comments
 (0)