aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/x86/huawei-wmi.c
diff options
context:
space:
mode:
authorMattias Jacobsson <2pi@mok.nu>2019-05-27 18:21:30 +0200
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2019-06-17 15:22:47 +0300
commit440c4983de262f78033ec58f6abcd199a664327d (patch)
tree90be45f40a11262d0808c17ae7eead61741c1c48 /drivers/platform/x86/huawei-wmi.c
parentplatform/x86: wmi: add context pointer field to struct wmi_device_id (diff)
downloadlinux-dev-440c4983de262f78033ec58f6abcd199a664327d.tar.xz
linux-dev-440c4983de262f78033ec58f6abcd199a664327d.zip
platform/x86: wmi: add context argument to the probe function
The struct wmi_device_id has a context pointer field, forward this pointer as an argument to the probe function in struct wmi_driver. Update existing users of the same probe function to accept this new context argument. Signed-off-by: Mattias Jacobsson <2pi@mok.nu> Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/huawei-wmi.c')
-rw-r--r--drivers/platform/x86/huawei-wmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/platform/x86/huawei-wmi.c b/drivers/platform/x86/huawei-wmi.c
index 52fcac5b393a..195a7f3638cb 100644
--- a/drivers/platform/x86/huawei-wmi.c
+++ b/drivers/platform/x86/huawei-wmi.c
@@ -166,7 +166,7 @@ static int huawei_wmi_input_setup(struct wmi_device *wdev)
return input_register_device(priv->idev);
}
-static int huawei_wmi_probe(struct wmi_device *wdev)
+static int huawei_wmi_probe(struct wmi_device *wdev, const void *context)
{
struct huawei_wmi_priv *priv;
int err;