From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mattias Jacobsson <2pi@mok.nu> Subject: [PATCH 0/3] platform/x86: wmi: add Xiaomi WMI key driver Date: Mon, 27 May 2019 18:21:28 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Return-path: Sender: linux-kernel-owner@vger.kernel.org To: dvhart@infradead.org, andy@infradead.org, mario.limonciello@dell.com, mjg59@srcf.ucam.org, pali.rohar@gmail.com Cc: 2pi@mok.nu, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org List-Id: platform-driver-x86.vger.kernel.org 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