rtc: convert core to SPDX identifier
Alexandre Belloni
maintainerPATCH 1/1 rtc: convert core to SPDX identifier
Use SPDX-License-Identifier instead of a verbose license text. Also fix the block comment alignment.
Signed-off-by Alexandre Belloni <[email protected]>
--- drivers/rtc/class.c | 7 ++----- drivers/rtc/dev.c | 7 ++----- drivers/rtc/hctosys.c | 7 ++----- drivers/rtc/interface.c | 7 ++----- drivers/rtc/lib.c | 7 ++----- drivers/rtc/nvmem.c | 5 +---- drivers/rtc/proc.c | 7 ++----- drivers/rtc/sysfs.c | 7 ++----- drivers/rtc/systohc.c | 7 +------ 9 files changed, 16 insertions(+), 45 deletions(-)
drivers/rtc/class.c +2 -5
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * RTC subsystem, base class *
@@ -5,11 +6,7 @@* Author: Alessandro Zummo <[email protected]> * * class skeleton from drivers/hwmon/hwmon.c -* -* 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. -*/ +*/ #define pr_fmt (fmt) KBUILD_MODNAME ": " fmt
drivers/rtc/dev.c +2 -5
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * RTC subsystem, dev interface *
@@ -5,11 +6,7 @@* Author: Alessandro Zummo <[email protected]> * * based on arch/arm/common/rtctime.c -* -* 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. -*/ +*/ #define pr_fmt (fmt) KBUILD_MODNAME ": " fmt
drivers/rtc/hctosys.c +2 -5
@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * RTC subsystem, initialize system time on startup * * Copyright (C) 2005 Tower Technologies * Author: Alessandro Zummo <[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. -*/ +*/ #define pr_fmt (fmt) KBUILD_MODNAME ": " fmt
drivers/rtc/interface.c +2 -5
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * RTC subsystem, interface functions *
@@ -5,11 +6,7 @@* Author: Alessandro Zummo <[email protected]> * * based on arch/arm/common/rtctime.c -* -* 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/rtc.h> #include <linux/sched.h>
drivers/rtc/lib.c +2 -5
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * rtc and date/time utility functions *
@@ -5,11 +6,7 @@* Author: Alessandro Zummo <[email protected]> * * based on arch/arm/common/rtctime.c and other bits -* -* 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/export.h> #include <linux/rtc.h>
drivers/rtc/nvmem.c +1 -4
@@ -1,11 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * RTC subsystem, nvmem interface * * Copyright (C) 2017 Alexandre Belloni -* -* 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/err.h>
drivers/rtc/proc.c +2 -5
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * RTC subsystem, proc interface *
@@ -5,11 +6,7 @@* Author: Alessandro Zummo <[email protected]> * * based on arch/arm/common/rtctime.c -* -* 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/module.h> #include <linux/rtc.h>
drivers/rtc/sysfs.c +2 -5
@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * RTC subsystem, sysfs interface * * Copyright (C) 2005 Tower Technologies * Author: Alessandro Zummo <[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/module.h> #include <linux/rtc.h>
drivers/rtc/systohc.c +1 -6
@@ -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/rtc.h> #include <linux/time.h>
Signature · 1 line
2.20.1