forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-05-13 9d77db3c730780c8ef5ccd4b66403ff5675cfe4e
kernel/drivers/platform/x86/intel-rst.c
....@@ -1,26 +1,11 @@
1
+// SPDX-License-Identifier: GPL-2.0+
12 /*
23 * Copyright 2013 Matthew Garrett <mjg59@srcf.ucam.org>
3
- *
4
- * This program is free software; you can redistribute it and/or modify
5
- * it under the terms of the GNU General Public License as published by
6
- * the Free Software Foundation; either version 2 of the License, or
7
- * (at your option) any later version.
8
- *
9
- * This program is distributed in the hope that it will be useful,
10
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
11
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
- * GNU General Public License for more details.
13
- *
14
- * You should have received a copy of the GNU General Public License along
15
- * with this program; if not, write to the Free Software Foundation, Inc.,
16
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
174 */
185
19
-
20
-#include <linux/init.h>
6
+#include <linux/acpi.h>
217 #include <linux/module.h>
228 #include <linux/slab.h>
23
-#include <linux/acpi.h>
249
2510 MODULE_LICENSE("GPL");
2611
....@@ -53,12 +38,10 @@
5338 acpi = to_acpi_device(dev);
5439
5540 error = kstrtoul(buf, 0, &value);
56
-
5741 if (error)
5842 return error;
5943
6044 status = acpi_execute_simple_method(acpi->handle, "SFFS", value);
61
-
6245 if (ACPI_FAILURE(status))
6346 return -EINVAL;
6447
....@@ -99,12 +82,10 @@
9982 acpi = to_acpi_device(dev);
10083
10184 error = kstrtoul(buf, 0, &value);
102
-
10385 if (error)
10486 return error;
10587
10688 status = acpi_execute_simple_method(acpi->handle, "SFTV", value);
107
-
10889 if (ACPI_FAILURE(status))
10990 return -EINVAL;
11091