Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Armin Wolf and committed by
Ilpo Järvinen
bb7527c6 e210986f

+2 -3
+2 -3
drivers/platform/x86/xiaomi-wmi.c
··· 1 1 // SPDX-License-Identifier: GPL-2.0 2 2 /* WMI driver for Xiaomi Laptops */ 3 3 4 - #include <linux/acpi.h> 5 4 #include <linux/device.h> 6 5 #include <linux/input.h> 7 6 #include <linux/module.h> ··· 55 56 return input_register_device(data->input_dev); 56 57 } 57 58 58 - static void xiaomi_wmi_notify(struct wmi_device *wdev, union acpi_object *dummy) 59 + static void xiaomi_wmi_notify(struct wmi_device *wdev, const struct wmi_buffer *dummy) 59 60 { 60 61 struct xiaomi_wmi *data = dev_get_drvdata(&wdev->dev); 61 62 ··· 84 85 }, 85 86 .id_table = xiaomi_wmi_id_table, 86 87 .probe = xiaomi_wmi_probe, 87 - .notify = xiaomi_wmi_notify, 88 + .notify_new = xiaomi_wmi_notify, 88 89 .no_singleton = true, 89 90 }; 90 91 module_wmi_driver(xiaomi_wmi_driver);