]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - drivers/hid/hid-ids.h
HID: ite: Add hid-ite driver
authorHans de Goede <hdegoede@redhat.com>
Wed, 10 May 2017 15:12:53 +0000 (17:12 +0200)
committerJiri Kosina <jkosina@suse.cz>
Thu, 11 May 2017 08:27:48 +0000 (10:27 +0200)
commitf1918be1c1dd6d97390513677f184c4d5e22e2ac
treec2988c70d7a195c822d103ee25a7804504e8a789
parent61df56bef97e1708bfbc006b307b00834ad61fe8
HID: ite: Add hid-ite driver

The ITE8595 keyboard uses the HID_GD_RFKILL_BTN usage code
from the Wireless Radio Controls Application Collection Microsoft
has defined for Windows 8 and later.

However it has a quirk, when the rfkill hotkey is pressed it does
generate a report for the collection, but the reported value is
always 0. Luckily it is the only button in this collection / report,
and it sends a report on release only, so receiving a report means the
button was pressed.

This commit adds a hid-ite driver which watches for the Wireless Radio
Controls Application Collection report and then reports a KEY_RFKILL event,
ignoring the value, making the rfkill on this keyboard work.

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/Kconfig
drivers/hid/Makefile
drivers/hid/hid-core.c
drivers/hid/hid-ids.h
drivers/hid/hid-ite.c [new file with mode: 0644]