Skip to content

Commit bb7527c

Browse files
Wer-Wolfij-intel
authored andcommitted
platform/x86: xiaomi-wmi: Use new buffer-based WMI API
Use the new buffer-based WMI API to avoid having to deal with ACPI at all. Signed-off-by: Armin Wolf <W_Armin@gmx.de> Link: https://patch.msgid.link/20260116204116.4030-8-W_Armin@gmx.de Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com> Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
1 parent e210986 commit bb7527c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

drivers/platform/x86/xiaomi-wmi.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// SPDX-License-Identifier: GPL-2.0
22
/* WMI driver for Xiaomi Laptops */
33

4-
#include <linux/acpi.h>
54
#include <linux/device.h>
65
#include <linux/input.h>
76
#include <linux/module.h>
@@ -56,7 +55,7 @@ static int xiaomi_wmi_probe(struct wmi_device *wdev, const void *context)
5655
return input_register_device(data->input_dev);
5756
}
5857

59-
static void xiaomi_wmi_notify(struct wmi_device *wdev, union acpi_object *dummy)
58+
static void xiaomi_wmi_notify(struct wmi_device *wdev, const struct wmi_buffer *dummy)
6059
{
6160
struct xiaomi_wmi *data = dev_get_drvdata(&wdev->dev);
6261

@@ -85,7 +84,7 @@ static struct wmi_driver xiaomi_wmi_driver = {
8584
},
8685
.id_table = xiaomi_wmi_id_table,
8786
.probe = xiaomi_wmi_probe,
88-
.notify = xiaomi_wmi_notify,
87+
.notify_new = xiaomi_wmi_notify,
8988
.no_singleton = true,
9089
};
9190
module_wmi_driver(xiaomi_wmi_driver);

0 commit comments

Comments
 (0)