Skip to contentSkip to conversation

clk: Tag clk core files with SPDX

PATCH Applied Stephen Boyd 1 participant 4 messages Dec 11, 2018 – Dec 13, 2018 Common clk

lore
Share & tools
lore

Stephen Boyd

author maintainer
#0 lore raw

PATCH 1/2 clk: Tag clk core files with SPDX

These are all GPL-2.0 files per the existing license text. Replace the boiler plate with the tag.

---
 drivers/clk/clk-bulk.c       | 13 +------------
 drivers/clk/clk-conf.c       |  5 +----
 drivers/clk/clk-devres.c     |  7 +------
 drivers/clk/clk.c            |  5 +----
 drivers/clk/clk.h            |  7 +------
 include/linux/clk-provider.h |  7 +------
 include/linux/clk/clk-conf.h |  5 +----
 7 files changed, 7 insertions(+), 42 deletions(-)
drivers/clk/clk-bulk.c +1 -12
index 6a7118d4250a..06499568cf07 100644
@@ -1,19 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright 2017 NXP
  *
  * Dong Aisheng <[email protected]>
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms and conditions of the GNU General Public License,
- * version 2, as published by the Free Software Foundation.
- *
- * This program is distributed in the hope 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, see <http://www.gnu.org/licenses/>.
  */
 
 #include <linux/clk.h>
drivers/clk/clk-conf.c +1 -4
index 49819b546134..2ef819606c41 100644
@@ -1,10 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (C) 2014 Samsung Electronics Co., Ltd.
  * Sylwester Nawrocki <[email protected]>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
  */
 
 #include <linux/clk.h>
drivers/clk/clk-devres.c +1 -6
index 12c87457eca1..c9a86156ced8 100644
@@ -1,9 +1,4 @@
-/*
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- */
-
+// SPDX-License-Identifier: GPL-2.0
 #include <linux/clk.h>
 #include <linux/device.h>
 #include <linux/export.h>
drivers/clk/clk.c +1 -4
index af011974d4ec..27260971bb39 100644
@@ -1,11 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (C) 2010-2011 Canonical Ltd <[email protected]>
  * Copyright (C) 2011-2012 Linaro Ltd <[email protected]>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
  * Standard functionality for the common clock API.  See Documentation/driver-api/clk.rst
  */
 
drivers/clk/clk.h +1 -6
index 70c0ba6336c1..b02f5e604e69 100644
@@ -1,12 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
- * linux/drivers/clk/clk.h
- *
  * Copyright (C) 2013 Samsung Electronics Co., Ltd.
  * Sylwester Nawrocki <[email protected]>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
  */
 
 struct clk_hw;
include/linux/clk-provider.h +1 -6
index 60c51871b04b..a2daf4572b05 100644
@@ -1,12 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
- *  linux/include/linux/clk-provider.h
- *
  *  Copyright (c) 2010-2011 Jeremy Kerr <[email protected]>
  *  Copyright (C) 2011-2012 Linaro Ltd <[email protected]>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
  */
 #ifndef __LINUX_CLK_PROVIDER_H
 #define __LINUX_CLK_PROVIDER_H
include/linux/clk/clk-conf.h +1 -4
index e0c362363c38..85f8cf9d1226 100644
@@ -1,10 +1,7 @@
+/* SPDX-License-Identifier: GPL-2.0 */
 /*
  * Copyright (C) 2014 Samsung Electronics Co., Ltd.
  * Sylwester Nawrocki <[email protected]>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
  */
 
 #include <linux/types.h>
Signature · 1 line
Sent by a computer through tubes
author maintainer
#1 lore raw

PATCH 2/2 clk: Tag basic clk types with SPDX

These are all GPL-2.0 files per the existing license text. Replace the boiler plate with the tag.

---
 drivers/clk/clk-composite.c          | 13 +------------
 drivers/clk/clk-divider.c            |  5 +----
 drivers/clk/clk-fixed-factor.c       |  7 +------
 drivers/clk/clk-fixed-rate.c         |  5 +----
 drivers/clk/clk-fractional-divider.c |  5 +----
 drivers/clk/clk-gate.c               |  5 +----
 drivers/clk/clk-gpio.c               |  5 +----
 drivers/clk/clk-multiplier.c         |  5 +----
 drivers/clk/clk-mux.c                |  5 +----
 9 files changed, 9 insertions(+), 46 deletions(-)
drivers/clk/clk-composite.c +1 -12
index 00269de2f390..46604214bba0 100644
@@ -1,17 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (c) 2013 NVIDIA CORPORATION.  All rights reserved.
- *
- * This program is free software; you can redistribute it and/or modify it
- * under the terms and conditions of the GNU General Public License,
- * version 2, as published by the Free Software Foundation.
- *
- * This program is distributed in the hope 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, see <http://www.gnu.org/licenses/>.
  */
 
 #include <linux/clk.h>
drivers/clk/clk-divider.c +1 -4
index b6234a5da12d..e5a17265cfaf 100644
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (C) 2011 Sascha Hauer, Pengutronix <[email protected]>
  * Copyright (C) 2011 Richard Zhao, Linaro <[email protected]>
  * Copyright (C) 2011-2012 Mike Turquette, Linaro Ltd <[email protected]>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
  * Adjustable divider clock implementation
  */
 
drivers/clk/clk-fixed-factor.c +1 -6
index ef0ca9414f37..739e19dcacfa 100644
@@ -1,11 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (C) 2011 Sascha Hauer, Pengutronix <[email protected]>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
- * Standard functionality for the common clock API.
  */
 #include <linux/module.h>
 #include <linux/clk-provider.h>
drivers/clk/clk-fixed-rate.c +1 -4
index 6d6475c32ee5..00ef4f5e53fe 100644
@@ -1,11 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (C) 2010-2011 Canonical Ltd <[email protected]>
  * Copyright (C) 2011-2012 Mike Turquette, Linaro Ltd <[email protected]>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
  * Fixed rate clock implementation
  */
 
drivers/clk/clk-fractional-divider.c +1 -4
index fdf625fb10fa..830f1361ff79 100644
@@ -1,10 +1,7 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (C) 2014 Intel Corporation
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
  * Adjustable fractional divider clock implementation.
  * Output rate = (m / n) * parent_rate.
  * Uses rational best approximation algorithm.
drivers/clk/clk-gate.c +1 -4
index dd82485e09a1..f05823cd9b21 100644
@@ -1,11 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (C) 2010-2011 Canonical Ltd <[email protected]>
  * Copyright (C) 2011-2012 Mike Turquette, Linaro Ltd <[email protected]>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
  * Gated clock implementation
  */
 
drivers/clk/clk-gpio.c +1 -4
index 6a43ce420492..25eed3e0251f 100644
@@ -1,3 +1,4 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (C) 2013 - 2014 Texas Instruments Incorporated - http://www.ti.com
  *
@@ -5,10 +6,6 @@
  *    Jyri Sarha <[email protected]>
  *    Sergej Sawazki <[email protected]>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
  * Gpio controlled clock implementation
  */
 
drivers/clk/clk-multiplier.c +1 -4
index dc037c957acd..3c86f859c199 100644
@@ -1,9 +1,6 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (C) 2015 Maxime Ripard <[email protected]>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
  */
 
 #include <linux/bitops.h>
drivers/clk/clk-mux.c +1 -4
index 1628b93655ed..2ad2df2e8909 100644
@@ -1,12 +1,9 @@
+// SPDX-License-Identifier: GPL-2.0
 /*
  * Copyright (C) 2011 Sascha Hauer, Pengutronix <[email protected]>
  * Copyright (C) 2011 Richard Zhao, Linaro <[email protected]>
  * Copyright (C) 2011-2012 Mike Turquette, Linaro Ltd <[email protected]>
  *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License version 2 as
- * published by the Free Software Foundation.
- *
  * Simple multiplexer clock implementation
  */
 
Signature · 1 line
Sent by a computer through tubes
author maintainer Applied
#2 lore raw

Re: [PATCH 2/2] clk: Tag basic clk types with SPDX

Quoting Stephen Boyd (2018-12-11 10:02:50)

Quoted 5 lines

These are all GPL-2.0 files per the existing license text. Replace the boiler plate with the tag.

---

Applied to clk-next