mfd: stm32: Adopt SPDX identifier
Subsystems (3)
PATCH v2 1/1 mfd: stm32: Adopt SPDX identifier
Add SPDX identifier
--- drivers/mfd/stm32-lptimer.c | 6 +----- drivers/mfd/stm32-timers.c | 4 +--- include/linux/mfd/stm32-lptimer.h | 6 +----- include/linux/mfd/stm32-timers.h | 4 +--- 4 files changed, 4 insertions(+), 16 deletions(-)
drivers/mfd/stm32-lptimer.c +1 -5
@@ -1,13 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * STM32 Low-Power Timer parent driver. -* * Copyright (C) STMicroelectronics 2017 -* * Author: Fabrice Gasnier <[email protected]> -* * Inspired by Benjamin Gaignard's stm32-timers driver -* -* License terms: GNU General Public License (GPL), version 2 */ #include <linux/mfd/stm32-lptimer.h>
drivers/mfd/stm32-timers.c +1 -3
@@ -1,9 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) STMicroelectronics 2016 -* * Author: Benjamin Gaignard <[email protected]> -* -* License terms: GNU General Public License (GPL), version 2 */ #include <linux/mfd/stm32-timers.h>
include/linux/mfd/stm32-lptimer.h +1 -5
@@ -1,13 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * STM32 Low-Power Timer parent driver. -* * Copyright (C) STMicroelectronics 2017 -* * Author: Fabrice Gasnier <[email protected]> -* * Inspired by Benjamin Gaignard's stm32-timers driver -* -* License terms: GNU General Public License (GPL), version 2 */ #ifndef _LINUX_STM32_LPTIMER_H_
include/linux/mfd/stm32-timers.h +1 -3
@@ -1,9 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) STMicroelectronics 2016 -* * Author: Benjamin Gaignard <[email protected]> -* -* License terms: GNU General Public License (GPL), version 2 */ #ifndef _LINUX_STM32_GPTIMER_H_
Signature · 1 line
2.15.0
Quoted 15 lines · benjamin.gaignard at linaro.org
Add SPDX identifier
Signed-off-by Benjamin Gaignard <[email protected]>--- drivers/mfd/stm32-lptimer.c | 6 +----- drivers/mfd/stm32-timers.c | 4 +--- include/linux/mfd/stm32-lptimer.h | 6 +----- include/linux/mfd/stm32-timers.h | 4 +--- 4 files changed, 4 insertions(+), 16 deletions(-)drivers/mfd/stm32-lptimer.c +0
-0
drivers/mfd/stm32-lptimer.c line 2
Quoted 2 lines
drivers/mfd/stm32-lptimer.c +1
-0@@ -1,13 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /*
I have been wondering - why is the SPDX identifier for the most part added as separate C++ comment at the beginning of the file, and not inline with the rest of the top comments ? SPDX doesn't mandate this - the examples I can find on the SPDX web site all show it inline. Is there a special Linux kernel convention ?
Thanks,
Guenter
Quoted 61 lines
drivers/mfd/stm32-lptimer.c +0
-5* STM32 Low-Power Timer parent driver. -* * Copyright (C) STMicroelectronics 2017 -* * Author: Fabrice Gasnier <[email protected]> -* * Inspired by Benjamin Gaignard's stm32-timers driver -* -* License terms: GNU General Public License (GPL), version 2 */ #include <linux/mfd/stm32-lptimer.h> drivers/mfd/stm32-timers.c +1
-3@@ -1,9 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) STMicroelectronics 2016 -* * Author: Benjamin Gaignard <[email protected]> -* -* License terms: GNU General Public License (GPL), version 2 */ #include <linux/mfd/stm32-timers.h> include/linux/mfd/stm32-lptimer.h +1
-5@@ -1,13 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * STM32 Low-Power Timer parent driver. -* * Copyright (C) STMicroelectronics 2017 -* * Author: Fabrice Gasnier <[email protected]> -* * Inspired by Benjamin Gaignard's stm32-timers driver -* -* License terms: GNU General Public License (GPL), version 2 */ #ifndef _LINUX_STM32_LPTIMER_H_include/linux/mfd/stm32-timers.h +1
-3@@ -1,9 +1,7 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Copyright (C) STMicroelectronics 2016 -* * Author: Benjamin Gaignard <[email protected]> -* -* License terms: GNU General Public License (GPL), version 2 */ #ifndef _LINUX_STM32_GPTIMER_H_
Quoted 11 lines · Guenter Roeck
Quoted 10 lines · On Tue, Dec 05, 2017 at 04:24:18PM +0100, [email protected] wrote:
Add SPDX identifier
Signed-off-by Benjamin Gaignard <[email protected]>--- drivers/mfd/stm32-lptimer.c | 6 +----- drivers/mfd/stm32-timers.c | 4 +--- include/linux/mfd/stm32-lptimer.h | 6 +----- include/linux/mfd/stm32-timers.h | 4 +--- 4 files changed, 4 insertions(+), 16 deletions(-)
Quoted 13 lines
drivers/mfd/stm32-lptimer.c line 2
Quoted 7 lines
drivers/mfd/stm32-lptimer.c +1
-0@@ -1,13 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* I have been wondering - why is the SPDX identifier for the most part added as separate C++ comment at the beginning of the file, and not inline with the rest of the top comments ? SPDX doesn't mandate this - the examples I can find on the SPDX web site all show it inline. Is there a special Linux kernel convention ?
See the patch series from Thomas that answers this question for you by adding documentation to the kernel explaining it all :)
thanks,
greg k-h
Quoted 26 lines · Greg KH
Quoted 11 lines · Guenter Roeck
Quoted 10 lines · benjamin.gaignard at linaro.org
Add SPDX identifier
Signed-off-by Benjamin Gaignard <[email protected]>--- drivers/mfd/stm32-lptimer.c | 6 +----- drivers/mfd/stm32-timers.c | 4 +--- include/linux/mfd/stm32-lptimer.h | 6 +----- include/linux/mfd/stm32-timers.h | 4 +--- 4 files changed, 4 insertions(+), 16 deletions(-)Quoted 13 lines
drivers/mfd/stm32-lptimer.c line 2
Quoted 7 lines
drivers/mfd/stm32-lptimer.c +1
-0@@ -1,13 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* I have been wondering - why is the SPDX identifier for the most part added as separate C++ comment at the beginning of the file, and not inline with the rest of the top comments ? SPDX doesn't mandate this - the examples I can find on the SPDX web site all show it inline. Is there a special Linux kernel convention ?
Quoted 3 lines
See the patch series from Thomas that answers this question for you by adding documentation to the kernel explaining it all :)
So it is a special Linux kernel convention. Interesting (and brrr ... :-) Thanks for the clarification.
Guenter
Lee Jones
AppliedQuoted 9 lines · Benjamin Gaignard
Add SPDX identifier
Signed-off-by Benjamin Gaignard <[email protected]>--- drivers/mfd/stm32-lptimer.c | 6 +----- drivers/mfd/stm32-timers.c | 4 +--- include/linux/mfd/stm32-lptimer.h | 6 +----- include/linux/mfd/stm32-timers.h | 4 +--- 4 files changed, 4 insertions(+), 16 deletions(-)
Applied, thanks.
Signature · 4 lines
Lee Jones Linaro Services Technical Lead Linaro.org ? Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog