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:18 -0400
commitad51f287ff593efb559f23e655312f3b6694fd90 (patch)
tree3c0b3f2d86ac3f053e82f69abd031caa74fe6358
parent908817720056ce19bfabd9c02e9bd09ff696d898 (diff)
platform/x86: intel_pmc: Convert to use SPDX identifier
Reduce size of duplicated comments by switching to use SPDX identifier. No functional change. While here, correct MODULE_LICENSE() string to be aligned with license text. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
-rw-r--r--drivers/platform/x86/intel_pmc_core.c11
-rw-r--r--drivers/platform/x86/intel_pmc_core.h11
-rw-r--r--drivers/platform/x86/intel_pmc_ipc.c12
3 files changed, 6 insertions, 28 deletions
diff --git a/drivers/platform/x86/intel_pmc_core.c b/drivers/platform/x86/intel_pmc_core.c
index 2d272a3e0176..6b31d410cb09 100644
--- a/drivers/platform/x86/intel_pmc_core.c
+++ b/drivers/platform/x86/intel_pmc_core.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0
1/* 2/*
2 * Intel Core SoC Power Management Controller Driver 3 * Intel Core SoC Power Management Controller Driver
3 * 4 *
@@ -6,16 +7,6 @@
6 * 7 *
7 * Authors: Rajneesh Bhardwaj <rajneesh.bhardwaj@intel.com> 8 * Authors: Rajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>
8 * Vishwanath Somayaji <vishwanath.somayaji@intel.com> 9 * Vishwanath Somayaji <vishwanath.somayaji@intel.com>
9 *
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms and conditions of the GNU General Public License,
12 * version 2, as published by the Free Software Foundation.
13 *
14 * This program is distributed in the hope it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17 * more details.
18 *
19 */ 10 */
20 11
21#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt 12#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
diff --git a/drivers/platform/x86/intel_pmc_core.h b/drivers/platform/x86/intel_pmc_core.h
index 93a7e99e1f8b..be045348ad86 100644
--- a/drivers/platform/x86/intel_pmc_core.h
+++ b/drivers/platform/x86/intel_pmc_core.h
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0
1/* 2/*
2 * Intel Core SoC Power Management Controller Header File 3 * Intel Core SoC Power Management Controller Header File
3 * 4 *
@@ -6,16 +7,6 @@
6 * 7 *
7 * Authors: Rajneesh Bhardwaj <rajneesh.bhardwaj@intel.com> 8 * Authors: Rajneesh Bhardwaj <rajneesh.bhardwaj@intel.com>
8 * Vishwanath Somayaji <vishwanath.somayaji@intel.com> 9 * Vishwanath Somayaji <vishwanath.somayaji@intel.com>
9 *
10 * This program is free software; you can redistribute it and/or modify it
11 * under the terms and conditions of the GNU General Public License,
12 * version 2, as published by the Free Software Foundation.
13 *
14 * This program is distributed in the hope it will be useful, but WITHOUT
15 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
16 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
17 * more details.
18 *
19 */ 10 */
20 11
21#ifndef PMC_CORE_H 12#ifndef PMC_CORE_H
diff --git a/drivers/platform/x86/intel_pmc_ipc.c b/drivers/platform/x86/intel_pmc_ipc.c
index 8b88e1743e41..7964ba22ef8d 100644
--- a/drivers/platform/x86/intel_pmc_ipc.c
+++ b/drivers/platform/x86/intel_pmc_ipc.c
@@ -1,16 +1,12 @@
1// SPDX-License-Identifier: GPL-2.0
1/* 2/*
2 * intel_pmc_ipc.c: Driver for the Intel PMC IPC mechanism 3 * Driver for the Intel PMC IPC mechanism
3 * 4 *
4 * (C) Copyright 2014-2015 Intel Corporation 5 * (C) Copyright 2014-2015 Intel Corporation
5 * 6 *
6 * This driver is based on Intel SCU IPC driver(intel_scu_opc.c) by 7 * This driver is based on Intel SCU IPC driver(intel_scu_ipc.c) by
7 * Sreedhara DS <sreedhara.ds@intel.com> 8 * Sreedhara DS <sreedhara.ds@intel.com>
8 * 9 *
9 * This program is free software; you can redistribute it and/or
10 * modify it under the terms of the GNU General Public License
11 * as published by the Free Software Foundation; version 2
12 * of the License.
13 *
14 * PMC running in ARC processor communicates with other entity running in IA 10 * PMC running in ARC processor communicates with other entity running in IA
15 * core through IPC mechanism which in turn messaging between IA core ad PMC. 11 * core through IPC mechanism which in turn messaging between IA core ad PMC.
16 */ 12 */
@@ -1028,7 +1024,7 @@ static void __exit intel_pmc_ipc_exit(void)
1028 1024
1029MODULE_AUTHOR("Zha Qipeng <qipeng.zha@intel.com>"); 1025MODULE_AUTHOR("Zha Qipeng <qipeng.zha@intel.com>");
1030MODULE_DESCRIPTION("Intel PMC IPC driver"); 1026MODULE_DESCRIPTION("Intel PMC IPC driver");
1031MODULE_LICENSE("GPL"); 1027MODULE_LICENSE("GPL v2");
1032 1028
1033/* Some modules are dependent on this, so init earlier */ 1029/* Some modules are dependent on this, so init earlier */
1034fs_initcall(intel_pmc_ipc_init); 1030fs_initcall(intel_pmc_ipc_init);