]> git.baikalelectronics.ru Git - kernel.git/commit
HID: chicony: Add Wireless Radio Control feature for Chicony devices
authorJian-Hong Pan <jhp@endlessos.org>
Wed, 23 Dec 2020 05:55:41 +0000 (13:55 +0800)
committerJiri Kosina <jkosina@suse.cz>
Thu, 14 Jan 2021 12:13:24 +0000 (13:13 +0100)
commitdfffd3386bc66d6efd1e4793a32303064d1c4e91
treee84bbf552ea8fde874f9f0e645a05000adb7f230
parent5afb3e3fdbe155c265cb1ac1604eb9e7743bf3a7
HID: chicony: Add Wireless Radio Control feature for Chicony devices

Some Chicony's keyboards support airplane mode hotkey (Fn+F2) with
"Wireless Radio Control" feature. For example, the wireless keyboard
[04f2:1236] shipped with ASUS all-in-one desktop.

After consulting Chicony for this hotkey, learned the device will send
with 0x11 as the report ID and 0x1 as the value when the key is pressed
down.

This patch maps the event as KEY_RFKILL.

Signed-off-by: Jian-Hong Pan <jhp@endlessos.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-chicony.c
drivers/hid/hid-ids.h