forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/platform/x86/dell-wmi-descriptor.c
....@@ -1,16 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /*
23 * Dell WMI descriptor driver
34 *
45 * Copyright (C) 2017 Dell Inc. All Rights Reserved.
5
- *
6
- * This program is free software; you can redistribute it and/or modify it
7
- * under the terms of the GNU General Public License version 2 as published
8
- * by the Free Software Foundation.
9
- *
10
- * This program is distributed in the hope that it will be useful,
11
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- * GNU General Public License for more details.
146 */
157
168 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
....@@ -106,7 +98,8 @@
10698 * WMI buffer length 12 4 <length>
10799 * WMI hotfix number 16 4 <hotfix>
108100 */
109
-static int dell_wmi_descriptor_probe(struct wmi_device *wdev)
101
+static int dell_wmi_descriptor_probe(struct wmi_device *wdev,
102
+ const void *context)
110103 {
111104 union acpi_object *obj = NULL;
112105 struct descriptor_priv *priv;
....@@ -207,7 +200,7 @@
207200
208201 module_wmi_driver(dell_wmi_descriptor_driver);
209202
210
-MODULE_ALIAS("wmi:" DELL_WMI_DESCRIPTOR_GUID);
203
+MODULE_DEVICE_TABLE(wmi, dell_wmi_descriptor_id_table);
211204 MODULE_AUTHOR("Mario Limonciello <mario.limonciello@dell.com>");
212205 MODULE_DESCRIPTION("Dell WMI descriptor driver");
213206 MODULE_LICENSE("GPL");