hc
2024-05-10 37f49e37ab4cb5d0bc4c60eb5c6d4dd57db767bb
kernel/include/linux/wmi.h
....@@ -1,16 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * wmi.h - ACPI WMI interface
34 *
45 * Copyright (c) 2015 Andrew Lutomirski
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License version 2 as
8
- * published by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope that it will be useful, but
11
- * WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
- * General Public License for more details.
146 */
157
168 #ifndef _LINUX_WMI_H
....@@ -18,6 +10,7 @@
1810
1911 #include <linux/device.h>
2012 #include <linux/acpi.h>
13
+#include <linux/mod_devicetable.h>
2114 #include <uapi/linux/wmi.h>
2215
2316 struct wmi_device {
....@@ -39,15 +32,11 @@
3932
4033 extern int set_required_buffer_size(struct wmi_device *wdev, u64 length);
4134
42
-struct wmi_device_id {
43
- const char *guid_string;
44
-};
45
-
4635 struct wmi_driver {
4736 struct device_driver driver;
4837 const struct wmi_device_id *id_table;
4938
50
- int (*probe)(struct wmi_device *wdev);
39
+ int (*probe)(struct wmi_device *wdev, const void *context);
5140 int (*remove)(struct wmi_device *wdev);
5241 void (*notify)(struct wmi_device *device, union acpi_object *data);
5342 long (*filter_callback)(struct wmi_device *wdev, unsigned int cmd,