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)
commitedb73f4f02472b92dc2473c74211d22807d482e4
tree2fb26e3a5b3eba5c13487e269eda4be6f0a35e42
parent440c4983de262f78033ec58f6abcd199a664327d
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]