Skip to content

Commit

Permalink
platform/x86: intel-rst: Convert to use SPDX identifier
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
andy-shev committed Sep 27, 2018
1 parent 5f4ad6a commit bd7c586
Showing 1 changed file with 1 addition and 19 deletions.
20 changes: 1 addition & 19 deletions drivers/platform/x86/intel-rst.c
Original file line number Diff line number Diff line change
@@ -1,22 +1,8 @@
// SPDX-License-Identifier: GPL-2.0+
/*
* Copyright 2013 Matthew Garrett <[email protected]>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/


#include <linux/acpi.h>
#include <linux/module.h>
#include <linux/slab.h>
Expand Down Expand Up @@ -52,12 +38,10 @@ static ssize_t irst_store_wakeup_events(struct device *dev,
acpi = to_acpi_device(dev);

error = kstrtoul(buf, 0, &value);

if (error)
return error;

status = acpi_execute_simple_method(acpi->handle, "SFFS", value);

if (ACPI_FAILURE(status))
return -EINVAL;

Expand Down Expand Up @@ -98,12 +82,10 @@ static ssize_t irst_store_wakeup_time(struct device *dev,
acpi = to_acpi_device(dev);

error = kstrtoul(buf, 0, &value);

if (error)
return error;

status = acpi_execute_simple_method(acpi->handle, "SFTV", value);

if (ACPI_FAILURE(status))
return -EINVAL;

Expand Down

0 comments on commit bd7c586

Please sign in to comment.