diff options
author | Hans de Goede <hdegoede@redhat.com> | 2017-05-11 20:11:11 +0300 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2017-05-22 15:47:43 +0300 |
commit | 6e7edabfc6a8ac5dce8c55363a7bb1576fc9348f (patch) | |
tree | bf2d810071cb111993c0cb217303fc395c9b8929 /drivers/hid/hid-input.c | |
parent | f1918be1c1dd6d97390513677f184c4d5e22e2ac (diff) | |
download | linux-6e7edabfc6a8ac5dce8c55363a7bb1576fc9348f.tar.xz |
HID: Microsoft Win8 Wireless Radio Controls cleanup
Use a better URL for the HUTRR40 Radio HID Usages documentation and use the
HID_GD_WIRELESS_RADIO_CTLS define rather then hardcoding a check for
0x0001000c.
Fixes: 61df56bef9 ("HID: Add mapping for Microsoft Win8 Wireless Radio Controls extensions")
Suggested-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/hid/hid-input.c')
-rw-r--r-- | drivers/hid/hid-input.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hid/hid-input.c b/drivers/hid/hid-input.c index 412040b11268..ccdff1ee1f0c 100644 --- a/drivers/hid/hid-input.c +++ b/drivers/hid/hid-input.c @@ -658,7 +658,7 @@ static void hidinput_configure_usage(struct hid_input *hidinput, struct hid_fiel case HID_GD_RFKILL_BTN: /* MS wireless radio ctl extension, also check CA */ - if (field->application == 0x0001000c) { + if (field->application == HID_GD_WIRELESS_RADIO_CTLS) { map_key_clear(KEY_RFKILL); /* We need to simulate the btn release */ field->flags |= HID_MAIN_ITEM_RELATIVE; |