hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/drivers/platform/x86/mxm-wmi.c
....@@ -1,21 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * MXM WMI driver
34 *
45 * Copyright(C) 2010 Red Hat.
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 as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
196 */
207 #include <linux/kernel.h>
218 #include <linux/module.h>
....@@ -48,13 +35,11 @@
4835 .xarg = 1,
4936 };
5037 struct acpi_buffer input = { (acpi_size)sizeof(args), &args };
51
- struct acpi_buffer output = { ACPI_ALLOCATE_BUFFER, NULL };
5238 acpi_status status;
5339
5440 printk("calling mux switch %d\n", adapter);
5541
56
- status = wmi_evaluate_method(MXM_WMMX_GUID, 0x0, adapter, &input,
57
- &output);
42
+ status = wmi_evaluate_method(MXM_WMMX_GUID, 0x0, adapter, &input, NULL);
5843
5944 if (ACPI_FAILURE(status))
6045 return status;
....@@ -73,13 +58,11 @@
7358 .xarg = 1,
7459 };
7560 struct acpi_buffer input = { (acpi_size)sizeof(args), &args };
76
- struct acpi_buffer output = { ACPI_ALLOCATE_BUFFER, NULL };
7761 acpi_status status;
7862
7963 printk("calling mux switch %d\n", adapter);
8064
81
- status = wmi_evaluate_method(MXM_WMMX_GUID, 0x0, adapter, &input,
82
- &output);
65
+ status = wmi_evaluate_method(MXM_WMMX_GUID, 0x0, adapter, &input, NULL);
8366
8467 if (ACPI_FAILURE(status))
8568 return status;