aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-09-26 11:27:40 -0400
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2018-09-27 05:18:19 -0400
commitbd7c5866bbe09f085c51e87578c1fa94c22728e0 (patch)
tree1b24db3ffe87b5eb06dbd6d9b1df716c253075c1
parent5f4ad6afe96b69886b57ca3cbc6b5e88b7911367 (diff)
platform/x86: intel-rst: Convert to use SPDX identifier
Reduce size of duplicated comments by switching to use SPDX identifier. No functional change. While here, throw away some extra blank lines. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
-rw-r--r--drivers/platform/x86/intel-rst.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/drivers/platform/x86/intel-rst.c b/drivers/platform/x86/intel-rst.c
index 56abf5cbb824..3b81cb896fed 100644
--- a/drivers/platform/x86/intel-rst.c
+++ b/drivers/platform/x86/intel-rst.c
@@ -1,22 +1,8 @@
1// SPDX-License-Identifier: GPL-2.0+
1/* 2/*
2 * Copyright 2013 Matthew Garrett <mjg59@srcf.ucam.org> 3 * 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.
17 */ 4 */
18 5
19
20#include <linux/acpi.h> 6#include <linux/acpi.h>
21#include <linux/module.h> 7#include <linux/module.h>
22#include <linux/slab.h> 8#include <linux/slab.h>
@@ -52,12 +38,10 @@ static ssize_t irst_store_wakeup_events(struct device *dev,
52 acpi = to_acpi_device(dev); 38 acpi = to_acpi_device(dev);
53 39
54 error = kstrtoul(buf, 0, &value); 40 error = kstrtoul(buf, 0, &value);
55
56 if (error) 41 if (error)
57 return error; 42 return error;
58 43
59 status = acpi_execute_simple_method(acpi->handle, "SFFS", value); 44 status = acpi_execute_simple_method(acpi->handle, "SFFS", value);
60
61 if (ACPI_FAILURE(status)) 45 if (ACPI_FAILURE(status))
62 return -EINVAL; 46 return -EINVAL;
63 47
@@ -98,12 +82,10 @@ static ssize_t irst_store_wakeup_time(struct device *dev,
98 acpi = to_acpi_device(dev); 82 acpi = to_acpi_device(dev);
99 83
100 error = kstrtoul(buf, 0, &value); 84 error = kstrtoul(buf, 0, &value);
101
102 if (error) 85 if (error)
103 return error; 86 return error;
104 87
105 status = acpi_execute_simple_method(acpi->handle, "SFTV", value); 88 status = acpi_execute_simple_method(acpi->handle, "SFTV", value);
106
107 if (ACPI_FAILURE(status)) 89 if (ACPI_FAILURE(status))
108 return -EINVAL; 90 return -EINVAL;
109 91