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)
commit859b510bb7fa5797cfaf7bf5729336bf0e94dd2e
treee84bbf552ea8fde874f9f0e645a05000adb7f230
parentde925e2fbb44eed8a2a7ce166b485fed5eae01aa
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