[PATCH 0/3] platform/x86: wmi: add Xiaomi WMI key driver

From: Mattias Jacobsson
Date: Mon May 27 2019 - 12:40:31 EST


This patchset adds a WMI key driver for Xiaomi notebooks. To be able to
do this while using the struct wmi_driver a context field has been added
to struct wmi_device_id.

[PATCH 1/3]: Add field to struct wmi_device_id and add a helper function
[PATCH 2/3]: Add new parameter to the probe function
[PATCH 3/3]: Add new driver

Mattias Jacobsson (3):
platform/x86: wmi: add context pointer field to struct wmi_device_id
platform/x86: wmi: add context argument to the probe function
platform/x86: wmi: add Xiaomi WMI key driver

drivers/platform/x86/Kconfig | 10 +++
drivers/platform/x86/Makefile | 1 +
drivers/platform/x86/dell-smbios-wmi.c | 2 +-
drivers/platform/x86/dell-wmi-descriptor.c | 3 +-
drivers/platform/x86/dell-wmi.c | 2 +-
drivers/platform/x86/huawei-wmi.c | 2 +-
drivers/platform/x86/intel-wmi-thunderbolt.c | 3 +-
drivers/platform/x86/wmi-bmof.c | 2 +-
drivers/platform/x86/wmi.c | 25 +++++-
drivers/platform/x86/xiaomi-wmi.c | 94 ++++++++++++++++++++
include/linux/mod_devicetable.h | 1 +
include/linux/wmi.h | 2 +-
12 files changed, 139 insertions(+), 8 deletions(-)
create mode 100644 drivers/platform/x86/xiaomi-wmi.c

--
2.21.0