HID: Add mapping for Microsoft Win8 Wireless Radio Controls extensions
authorHans de Goede <hdegoede@redhat.com>
Wed, 10 May 2017 15:12:52 +0000 (17:12 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 11 May 2017 08:27:48 +0000 (10:27 +0200)
commit61df56bef97e1708bfbc006b307b00834ad61fe8
treec27725afb17fd8e1d57d78a51eac5cddb1a7a85d
parent7af4c727c7b6104f94f2ffc3d0899e75a9cc1e55
HID: Add mapping for Microsoft Win8 Wireless Radio Controls extensions

Microsoft has defined some extra HUT codes for the Generic Desktop Page
for Wireless Radio controls, see:

https://docs.microsoft.com/en-us/windows-hardware/drivers/hid/airplane-mode-radio-management
https://web.archive.org/web/20170509144631/https://docs.microsoft.com/en-us/windows-hardware/drivers/hid/airplane-mode-radio-management

I've 3 2-in-1 keyboard docks: Dell Venue Pro 11 keyboard dock,
HP pavilion x2 keyboard dock and a PEAQ C1010 keyboard dock which have
a wireless radio toggle hotkey, which uses the 0x000100c6 HUT code
defined in these extensions.

This commit adds a mapping for this key, this makes the rfkill toggle
hotkey work on the Dell Venue Pro 11 and HP Pavilion X2 keyboards,
the PEAQ C1010 keyboard does generate events for the 0x000100c6 HUT
code when pressed, but the reported value is always 0.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-input.c
include/linux/hid.h