]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: wmi: add Xiaomi WMI key driver
authorMattias Jacobsson <2pi@mok.nu>
Mon, 27 May 2019 16:21:31 +0000 (18:21 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 29 Jun 2019 12:56:36 +0000 (15:56 +0300)
commit3a89565a00068be0da5767c2c22cee1e135f4bb0
tree2fb26e3a5b3eba5c13487e269eda4be6f0a35e42
parent1e9e39c27b0709d18a722ba47ea2d6eea6d54620
platform/x86: wmi: add Xiaomi WMI key driver

Some function keys on the built in keyboard on Xiaomi's notebooks does
not produce any key events when pressed in combination with the function
key. Some of these keys do report that they are being pressed via WMI
events.

This driver reports key events for Fn+F7 and double tap on Fn.

Other WMI events that are reported by the hardware but not utilized by
this driver are Caps Lock(which already work) and Fn lock/unlock.

Signed-off-by: Mattias Jacobsson <2pi@mok.nu>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/Kconfig
drivers/platform/x86/Makefile
drivers/platform/x86/xiaomi-wmi.c [new file with mode: 0644]