All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: Alex Hung <alex.hung@canonical.com>,
	Mario Limonciello <mario.limonciello@dell.com>,
	Sujith Thomas <sujith.thomas@intel.com>,
	Rajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>,
	Zha Qipeng <qipeng.zha@intel.com>,
	Souvik Kumar Chakravarty <souvik.k.chakravarty@intel.com>,
	platform-driver-x86@vger.kernel.org,
	Darren Hart <dvhart@infradead.org>,
	Hans de Goede <hdegoede@redhat.com>,
	Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>,
	linux-kernel@vger.kernel.org
Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Subject: [PATCH v1 20/28] platform/x86: intel-rst: Convert to use SPDX identifier
Date: Wed, 26 Sep 2018 19:52:15 +0300	[thread overview]
Message-ID: <20180926165223.19390-20-andriy.shevchenko@linux.intel.com> (raw)
In-Reply-To: <20180926165223.19390-1-andriy.shevchenko@linux.intel.com>

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>
---
 drivers/platform/x86/intel-rst.c | 20 +-------------------
 1 file changed, 1 insertion(+), 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 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  *  Copyright 2013 Matthew Garrett <mjg59@srcf.ucam.org>
- *
- *  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>
@@ -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;
 
@@ -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;
 
-- 
2.19.0


  parent reply	other threads:[~2018-09-26 17:00 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-09-26 16:51 [PATCH v1 01/28] platform/x86: intel_bxtwc_tmu: Convert to use SPDX identifier Andy Shevchenko
2018-09-26 16:51 ` [PATCH v1 02/28] platform/x86: intel_cht_int33fe: " Andy Shevchenko
2018-09-26 16:51 ` [PATCH v1 03/28] platform/x86: intel_chtdc_ti_pwrbtn: Add " Andy Shevchenko
2018-09-26 16:51 ` [PATCH v1 04/28] platform/x86: intel-hid: Convert to use " Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 05/28] platform/x86: intel_int0002_vgpio: " Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 06/28] platform/x86: intel-ips: " Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 07/28] platform/x86: intel_menlow: Sort headers alphabetically Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 08/28] platform/x86: intel_menlow: Convert to use SPDX identifier Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 09/28] platform/x86: intel_mid_powerbtn: Remove unnecessary init.h inclusion Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 10/28] platform/x86: intel_mid_powerbtn: Convert to use SPDX identifier Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 11/28] platform/x86: intel_mid_thermal: Sort headers alphabetically Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 12/28] platform/x86: intel_mid_thermal: Convert to use SPDX identifier Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 13/28] platform/x86: intel_oaktrail: Sort headers alphabetically Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 14/28] platform/x86: intel_oaktrail: Convert to use SPDX identifier Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 15/28] platform/x86: intel_pmc: Sort headers alphabetically Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 16/28] platform/x86: intel_pmc: Convert to use SPDX identifier Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 17/28] platform/x86: intel_punit_ipc: Sort headers alphabetically Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 18/28] platform/x86: intel_punit_ipc: Convert to use SPDX identifier Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 19/28] platform/x86: intel-rst: Sort headers alphabetically Andy Shevchenko
2018-09-26 16:52 ` Andy Shevchenko [this message]
2018-09-26 16:52 ` [PATCH v1 21/28] platform/x86: intel_scu_ipc: " Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 22/28] platform/x86: intel_scu_ipc: Convert to use SPDX identifier Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 23/28] platform/x86: intel-smartconnect: Sort headers alphabetically Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 24/28] platform/x86: intel-smartconnect: Convert to use SPDX identifier Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 25/28] platform/x86: intel_telemetry: " Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 26/28] platform/x86: intel_turbo_max_3: Sort headers alphabetically Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 27/28] platform/x86: intel_turbo_max_3: Convert to use SPDX identifier Andy Shevchenko
2018-09-26 16:52 ` [PATCH v1 28/28] platform/x86: intel-wmi-thunderbolt: " Andy Shevchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180926165223.19390-20-andriy.shevchenko@linux.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --cc=alex.hung@canonical.com \
    --cc=dvhart@infradead.org \
    --cc=hdegoede@redhat.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mario.limonciello@dell.com \
    --cc=platform-driver-x86@vger.kernel.org \
    --cc=qipeng.zha@intel.com \
    --cc=rajneesh.bhardwaj@intel.com \
    --cc=souvik.k.chakravarty@intel.com \
    --cc=srinivas.pandruvada@linux.intel.com \
    --cc=sujith.thomas@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.