drivers: base: regmap: add proper SPDX identifiers on files that did not have them.
Subsystems (6)
Greg Kroah-Hartman
maintainerPATCH 1/4 drivers: base: regmap: add proper SPDX identifiers on files that did not have them.
There were a few files in the regmap code that did not have SPDX identifiers on them, so fix that up. At the same time, remove the "free form" text that specified the license of the file, as that is impossible for any tool to properly parse.
--- drivers/base/regmap/internal.h | 5 +---- drivers/base/regmap/regcache-flat.c | 5 +---- drivers/base/regmap/regcache-lzo.c | 5 +---- drivers/base/regmap/regcache-rbtree.c | 5 +---- drivers/base/regmap/regcache.c | 5 +---- drivers/base/regmap/regmap-ac97.c | 13 +------------ drivers/base/regmap/regmap-debugfs.c | 5 +---- drivers/base/regmap/regmap-i2c.c | 5 +---- drivers/base/regmap/regmap-irq.c | 5 +---- drivers/base/regmap/regmap-mmio.c | 13 +------------ drivers/base/regmap/regmap-spi.c | 5 +---- drivers/base/regmap/regmap-spmi.c | 11 +---------- drivers/base/regmap/regmap-w1.c | 5 +---- drivers/base/regmap/regmap.c | 5 +---- 14 files changed, 14 insertions(+), 78 deletions(-)
drivers/base/regmap/internal.h +1 -4
@@ -1,13 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Register map access API internal header * * Copyright 2011 Wolfson Microelectronics plc * * Author: Mark Brown <[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 _REGMAP_INTERNAL_H
drivers/base/regmap/regcache-flat.c +1 -4
@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Register cache access API - flat caching support * * Copyright 2012 Wolfson Microelectronics plc * * Author: Mark Brown <[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/device.h>
drivers/base/regmap/regcache-lzo.c +1 -4
@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Register cache access API - LZO caching support * * Copyright 2011 Wolfson Microelectronics plc * * Author: Dimitris Papastamos <[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/device.h>
drivers/base/regmap/regcache-rbtree.c +1 -4
@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Register cache access API - rbtree caching support * * Copyright 2011 Wolfson Microelectronics plc * * Author: Dimitris Papastamos <[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/debugfs.h>
drivers/base/regmap/regcache.c +1 -4
@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Register cache access API * * Copyright 2011 Wolfson Microelectronics plc * * Author: Dimitris Papastamos <[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/bsearch.h>
drivers/base/regmap/regmap-ac97.c +1 -12
@@ -1,19 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Register map access API - AC'97 support * * Copyright 2013 Linaro Ltd. 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/base/regmap/regmap-debugfs.c +1 -4
@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Register map access API - debugfs * * Copyright 2011 Wolfson Microelectronics plc * * Author: Mark Brown <[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/slab.h>
drivers/base/regmap/regmap-i2c.c +1 -4
@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Register map access API - I2C support * * Copyright 2011 Wolfson Microelectronics plc * * Author: Mark Brown <[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/regmap.h>
drivers/base/regmap/regmap-irq.c +1 -4
@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * regmap based irq_chip * * Copyright 2011 Wolfson Microelectronics plc * * Author: Mark Brown <[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/device.h>
drivers/base/regmap/regmap-mmio.c +1 -12
@@ -1,19 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Register map access API - MMIO support * * Copyright (c) 2012, 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/base/regmap/regmap-spi.c +1 -4
@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Register map access API - SPI support * * Copyright 2011 Wolfson Microelectronics plc * * Author: Mark Brown <[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/regmap.h>
drivers/base/regmap/regmap-spmi.c +1 -10
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Register map access API - SPMI support *
@@ -6,16 +7,6 @@* Based on regmap-i2c.c: * Copyright 2011 Wolfson Microelectronics plc * Author: Mark Brown <[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 and -* only version 2 as published by the Free Software Foundation. -* -* 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. -* */ #include <linux/regmap.h> #include <linux/spmi.h>
drivers/base/regmap/regmap-w1.c +1 -4
@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Register map access API - W1 (1-Wire) support * * Copyright (c) 2017 Radioavionica Corporation * Author: Alex A. Mihaylov <[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/regmap.h>
drivers/base/regmap/regmap.c +1 -4
@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Register map access API * * Copyright 2011 Wolfson Microelectronics plc * * Author: Mark Brown <[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/device.h>
Signature · 1 line
2.21.0
Greg Kroah-Hartman
maintainerPATCH 2/4 drivers: base: power: add proper SPDX identifiers on files that did not have them.
There were a few files in the driver core power code that did not have SPDX identifiers on them, so fix that up. At the same time, remove the "free form" text that specified the license of the file, as that is impossible for any tool to properly parse.
--- drivers/base/power/clock_ops.c | 3 +-- drivers/base/power/common.c | 4 +--- drivers/base/power/domain.c | 4 +--- drivers/base/power/domain_governor.c | 4 +--- drivers/base/power/generic_ops.c | 4 +--- drivers/base/power/main.c | 4 +--- drivers/base/power/qos.c | 6 +----- drivers/base/power/runtime.c | 4 +--- drivers/base/power/sysfs.c | 6 ++---- drivers/base/power/trace.c | 2 +- drivers/base/power/wakeirq.c | 15 ++------------- drivers/base/power/wakeup.c | 4 +--- 12 files changed, 14 insertions(+), 46 deletions(-)
drivers/base/power/clock_ops.c +1 -2
@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * drivers/base/power/clock_ops.c - Generic clock manipulation PM callbacks * * Copyright (c) 2011 Rafael J. Wysocki <[email protected]>, Renesas Electronics Corp. -* -* This file is released under the GPLv2. */ #include <linux/kernel.h>
drivers/base/power/common.c +1 -3
@@ -1,11 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * drivers/base/power/common.c - Common device power management code. * * Copyright (C) 2011 Rafael J. Wysocki <[email protected]>, Renesas Electronics Corp. -* -* This file is released under the GPLv2. */ -#include <linux/kernel.h> #include <linux/device.h> #include <linux/export.h>
drivers/base/power/domain.c +1 -3
@@ -1,11 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * drivers/base/power/domain.c - Common code related to device power domains. * * Copyright (C) 2011 Rafael J. Wysocki <[email protected]>, Renesas Electronics Corp. -* -* This file is released under the GPLv2. */ -#define pr_fmt (fmt) "PM: " fmt#include <linux/delay.h>
drivers/base/power/domain_governor.c +1 -3
@@ -1,11 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * drivers/base/power/domain_governor.c - Governors for device PM domains. * * Copyright (C) 2011 Rafael J. Wysocki <[email protected]>, Renesas Electronics Corp. -* -* This file is released under the GPLv2. */ -#include <linux/kernel.h> #include <linux/pm_domain.h> #include <linux/pm_qos.h>
drivers/base/power/generic_ops.c +1 -3
@@ -1,11 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * drivers/base/power/generic_ops.c - Generic PM callbacks for subsystems * * Copyright (c) 2010 Rafael J. Wysocki <[email protected]>, Novell Inc. -* -* This file is released under the GPLv2. */ -#include <linux/pm.h> #include <linux/pm_runtime.h> #include <linux/export.h>
drivers/base/power/main.c +1 -3
@@ -1,12 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * drivers/base/power/main.c - Where the driver meets power management. * * Copyright (c) 2003 Patrick Mochel * Copyright (c) 2003 Open Source Development Lab * -* This file is released under the GPLv2 -* -* * The driver model core calls device_pm_add() when a device is registered. * This will initialize the embedded device_pm_info object in the device * and add it to the list of power-controlled devices. sysfs entries for
drivers/base/power/qos.c +1 -5
@@ -1,13 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Devices PM QoS constraints management * * Copyright (C) 2011 Texas Instruments, Inc. * -* 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. -* -* * This module exposes the interface to kernel space for specifying * per-device PM QoS dependencies. It provides infrastructure for registration * of:
drivers/base/power/runtime.c +1 -3
@@ -1,12 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * drivers/base/power/runtime.c - Helper functions for device runtime PM * * Copyright (c) 2009 Rafael J. Wysocki <[email protected]>, Novell Inc. * Copyright (C) 2010 Alan Stern <[email protected]> -* -* This file is released under the GPLv2. */ -#include <linux/sched/mm.h> #include <linux/ktime.h> #include <linux/hrtimer.h>
drivers/base/power/sysfs.c +2 -4
@@ -1,7 +1,5 @@ -/* -* drivers/base/power/sysfs.c - sysfs entries for device PM -*/ - +// SPDX-License-Identifier: GPL-2.0 +/* sysfs entries for device PM */ #include <linux/device.h> #include <linux/string.h> #include <linux/export.h>
drivers/base/power/trace.c +1 -1
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * drivers/base/power/trace.c *
@@ -6,7 +7,6 @@* Trace facility for suspend/resume problems, when none of the * devices may be working. */ -#define pr_fmt (fmt) "PM: " fmt#include <linux/pm-trace.h>
drivers/base/power/wakeirq.c +2 -13
@@ -1,16 +1,5 @@ -/* -* wakeirq.c - Device wakeirq helper functions -* -* 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. -* -* This program is distributed "as is" WITHOUT ANY WARRANTY of any -* kind, whether express or implied; without even the implied warranty -* of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -*/ - +// SPDX-License-Identifier: GPL-2.0 +/* Device wakeirq helper functions */ #include <linux/device.h> #include <linux/interrupt.h> #include <linux/irq.h>
drivers/base/power/wakeup.c +1 -3
@@ -1,11 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * drivers/base/power/wakeup.c - System wakeup events framework * * Copyright (c) 2010 Rafael J. Wysocki <[email protected]>, Novell Inc. -* -* This file is released under the GPLv2. */ -#define pr_fmt (fmt) "PM: " fmt#include <linux/device.h>
Signature · 1 line
2.21.0
Greg Kroah-Hartman
maintainerPATCH 3/4 drivers: base: firmware_loader: add proper SPDX identifiers on files that did not have them.
In reply to Greg Kroah-HartmanThere were two files in the firmware_loader code that did not have SPDX identifiers on them, so fix that up.
--- drivers/base/firmware_loader/Kconfig | 1 + drivers/base/firmware_loader/builtin/.gitignore | 1 + 2 files changed, 2 insertions(+)
drivers/base/firmware_loader/Kconfig +1 -0
@@ -1,3 +1,4 @@ +# SPDX-License-Identifier: GPL-2.0 menu "Firmware loader" config FW_LOADER
drivers/base/firmware_loader/builtin/.gitignore +1 -0
@@ -1 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 *.gen.S
Signature · 1 line
2.21.0
Greg Kroah-Hartman
maintainerPATCH 4/4 drivers: base: test: add proper SPDX identifier to Makefile
In reply to Greg Kroah-HartmanThe Makefile in the drivers/base/test/ directory did not have a SPDX identifier on it, so fix that up.
--- drivers/base/test/Makefile | 1 + 1 file changed, 1 insertion(+)
drivers/base/test/Makefile +1 -0
@@ -1 +1,2 @@ +# SPDX-License-Identifier: GPL-2.0 obj-$(CONFIG_TEST_ASYNC_DRIVER_PROBE) += test_async_driver_probe.o
Signature · 1 line
2.21.0
Mark Brown
maintainerdrivers/base/regmap/regcache-flat.c line 2
Quoted 5 lines · Greg Kroah-Hartman
drivers/base/regmap/regcache-flat.c +1
-0@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /*
Please make the whole header a C++ header so that things look more consistent and intentional.
Greg Kroah-Hartman
maintainerQuoted 10 lines · Mark Brown
drivers/base/regmap/regcache-flat.c line 2
Quoted 5 lines · Greg Kroah-Hartman
drivers/base/regmap/regcache-flat.c +1
-0@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* Please make the whole header a C++ header so that things look more consistent and intentional.
SPDX lines are "intentional" :)
But sure, if you like your comments that way, I'll go redo this...
thanks,
greg k-h
Greg Kroah-Hartman
maintainerQuoted 10 lines · Mark Brown
drivers/base/regmap/regcache-flat.c line 2
Quoted 5 lines · Greg Kroah-Hartman
drivers/base/regmap/regcache-flat.c +1
-0@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* Please make the whole header a C++ header so that things look more consistent and intentional.
Ok, fair enough, will do so now.
greg k-h
Greg Kroah-Hartman
maintainerPATCH v2 1/1 drivers: base: regmap: add proper SPDX identifiers on files that did not have them.
In reply to Greg Kroah-HartmanThere were a few files in the regmap code that did not have SPDX identifiers on them, so fix that up. At the same time, remove the "free form" text that specified the license of the file, as that is impossible for any tool to properly parse.
Also, as Mark loves // comment markers, convert all of the headers to be the same to make things look consistent :)
---
v2: make the whole header of the .c files use // markers as per Mark's
request.
drivers/base/regmap/internal.h | 5 +---- drivers/base/regmap/regcache-flat.c | 18 +++++++---------- drivers/base/regmap/regcache-lzo.c | 18 +++++++---------- drivers/base/regmap/regcache-rbtree.c | 18 +++++++---------- drivers/base/regmap/regcache.c | 18 +++++++---------- drivers/base/regmap/regmap-ac97.c | 22 +++++--------------- drivers/base/regmap/regmap-debugfs.c | 18 +++++++---------- drivers/base/regmap/regmap-i2c.c | 18 +++++++---------- drivers/base/regmap/regmap-irq.c | 18 +++++++---------- drivers/base/regmap/regmap-mmio.c | 22 +++++--------------- drivers/base/regmap/regmap-spi.c | 18 +++++++---------- drivers/base/regmap/regmap-spmi.c | 29 +++++++++------------------ drivers/base/regmap/regmap-w1.c | 16 ++++++--------- drivers/base/regmap/regmap.c | 18 +++++++---------- 14 files changed, 90 insertions(+), 166 deletions(-)
drivers/base/regmap/internal.h +1 -4
@@ -1,13 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Register map access API internal header * * Copyright 2011 Wolfson Microelectronics plc * * Author: Mark Brown <[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 _REGMAP_INTERNAL_H
drivers/base/regmap/regcache-flat.c +7 -11
@@ -1,14 +1,10 @@ -/* -* Register cache access API - flat caching support -* -* Copyright 2012 Wolfson Microelectronics plc -* -* Author: Mark Brown <[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. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register cache access API - flat caching support +// +// Copyright 2012 Wolfson Microelectronics plc +// +// Author: Mark Brown <[email protected]> #include <linux/device.h> #include <linux/seq_file.h>
drivers/base/regmap/regcache-lzo.c +7 -11
@@ -1,14 +1,10 @@ -/* -* Register cache access API - LZO caching support -* -* Copyright 2011 Wolfson Microelectronics plc -* -* Author: Dimitris Papastamos <[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. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register cache access API - LZO caching support +// +// Copyright 2011 Wolfson Microelectronics plc +// +// Author: Dimitris Papastamos <[email protected]> #include <linux/device.h> #include <linux/lzo.h>
drivers/base/regmap/regcache-rbtree.c +7 -11
@@ -1,14 +1,10 @@ -/* -* Register cache access API - rbtree caching support -* -* Copyright 2011 Wolfson Microelectronics plc -* -* Author: Dimitris Papastamos <[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. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register cache access API - rbtree caching support +// +// Copyright 2011 Wolfson Microelectronics plc +// +// Author: Dimitris Papastamos <[email protected]> #include <linux/debugfs.h> #include <linux/device.h>
drivers/base/regmap/regcache.c +7 -11
@@ -1,14 +1,10 @@ -/* -* Register cache access API -* -* Copyright 2011 Wolfson Microelectronics plc -* -* Author: Dimitris Papastamos <[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. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register cache access API +// +// Copyright 2011 Wolfson Microelectronics plc +// +// Author: Dimitris Papastamos <[email protected]> #include <linux/bsearch.h> #include <linux/device.h>
drivers/base/regmap/regmap-ac97.c +5 -17
@@ -1,20 +1,8 @@ -/* -* Register map access API - AC'97 support -* -* Copyright 2013 Linaro Ltd. 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/>. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register map access API - AC'97 support +// +// Copyright 2013 Linaro Ltd. All rights reserved. #include <linux/clk.h> #include <linux/err.h>
drivers/base/regmap/regmap-debugfs.c +7 -11
@@ -1,14 +1,10 @@ -/* -* Register map access API - debugfs -* -* Copyright 2011 Wolfson Microelectronics plc -* -* Author: Mark Brown <[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. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register map access API - debugfs +// +// Copyright 2011 Wolfson Microelectronics plc +// +// Author: Mark Brown <[email protected]> #include <linux/slab.h> #include <linux/mutex.h>
drivers/base/regmap/regmap-i2c.c +7 -11
@@ -1,14 +1,10 @@ -/* -* Register map access API - I2C support -* -* Copyright 2011 Wolfson Microelectronics plc -* -* Author: Mark Brown <[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. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register map access API - I2C support +// +// Copyright 2011 Wolfson Microelectronics plc +// +// Author: Mark Brown <[email protected]> #include <linux/regmap.h> #include <linux/i2c.h>
drivers/base/regmap/regmap-irq.c +7 -11
@@ -1,14 +1,10 @@ -/* -* regmap based irq_chip -* -* Copyright 2011 Wolfson Microelectronics plc -* -* Author: Mark Brown <[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. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// regmap based irq_chip +// +// Copyright 2011 Wolfson Microelectronics plc +// +// Author: Mark Brown <[email protected]> #include <linux/device.h> #include <linux/export.h>
drivers/base/regmap/regmap-mmio.c +5 -17
@@ -1,20 +1,8 @@ -/* -* Register map access API - MMIO support -* -* Copyright (c) 2012, 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/>. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register map access API - MMIO support +// +// Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved. #include <linux/clk.h> #include <linux/err.h>
drivers/base/regmap/regmap-spi.c +7 -11
@@ -1,14 +1,10 @@ -/* -* Register map access API - SPI support -* -* Copyright 2011 Wolfson Microelectronics plc -* -* Author: Mark Brown <[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. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register map access API - SPI support +// +// Copyright 2011 Wolfson Microelectronics plc +// +// Author: Mark Brown <[email protected]> #include <linux/regmap.h> #include <linux/spi/spi.h>
drivers/base/regmap/regmap-spmi.c +10 -19
@@ -1,22 +1,13 @@ -/* -* Register map access API - SPMI support -* -* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. -* -* Based on regmap-i2c.c: -* Copyright 2011 Wolfson Microelectronics plc -* Author: Mark Brown <[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 and -* only version 2 as published by the Free Software Foundation. -* -* 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. -* -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register map access API - SPMI support +// +// Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. +// +// Based on regmap-i2c.c: +// Copyright 2011 Wolfson Microelectronics plc +// Author: Mark Brown <[email protected]> +#include <linux/regmap.h> #include <linux/spmi.h> #include <linux/module.h>
drivers/base/regmap/regmap-w1.c +6 -10
@@ -1,13 +1,9 @@ -/* -* Register map access API - W1 (1-Wire) support -* -* Copyright (c) 2017 Radioavionica Corporation -* Author: Alex A. Mihaylov <[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 -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register map access API - W1 (1-Wire) support +// +// Copyright (c) 2017 Radioavionica Corporation +// Author: Alex A. Mihaylov <[email protected]> #include <linux/regmap.h> #include <linux/module.h>
drivers/base/regmap/regmap.c +7 -11
@@ -1,14 +1,10 @@ -/* -* Register map access API -* -* Copyright 2011 Wolfson Microelectronics plc -* -* Author: Mark Brown <[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. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register map access API +// +// Copyright 2011 Wolfson Microelectronics plc +// +// Author: Mark Brown <[email protected]> #include <linux/device.h> #include <linux/slab.h>
Signature · 1 line
2.21.0
Mark Brown
maintainerQuoted 4 lines · Greg Kroah-Hartman
There were a few files in the regmap code that did not have SPDX identifiers on them, so fix that up. At the same time, remove the "free form" text that specified the license of the file, as that is impossible for any tool to properly parse.
Please use subject lines matching the style for the subsystem. This makes it easier for people to identify relevant patches.
Greg Kroah-Hartman
maintainerQuoted 8 lines · Mark Brown
Quoted 4 lines · Greg Kroah-Hartman
There were a few files in the regmap code that did not have SPDX identifiers on them, so fix that up. At the same time, remove the "free form" text that specified the license of the file, as that is impossible for any tool to properly parse.
Please use subject lines matching the style for the subsystem. This makes it easier for people to identify relevant patches.
"drivers: base: regmap:" was my attempt at doing this, it worked for all of the other patches in this series :)
I'll drop the first two words and resend, thanks.
greg k-h
Greg Kroah-Hartman
maintainerPATCH v3 1/1 regmap: add proper SPDX identifiers on files that did not have them.
In reply to Greg Kroah-HartmanThere were a few files in the regmap code that did not have SPDX identifiers on them, so fix that up. At the same time, remove the "free form" text that specified the license of the file, as that is impossible for any tool to properly parse.
Also, as Mark loves // comment markers, convert all of the headers to be the same to make things look consistent :)
---
v3: drop "drivers: base:" from the subject: line
v2: make the whole header of the .c files use // markers as per Mark's
request.
drivers/base/regmap/internal.h | 5 +---- drivers/base/regmap/regcache-flat.c | 18 +++++++---------- drivers/base/regmap/regcache-lzo.c | 18 +++++++---------- drivers/base/regmap/regcache-rbtree.c | 18 +++++++---------- drivers/base/regmap/regcache.c | 18 +++++++---------- drivers/base/regmap/regmap-ac97.c | 22 +++++--------------- drivers/base/regmap/regmap-debugfs.c | 18 +++++++---------- drivers/base/regmap/regmap-i2c.c | 18 +++++++---------- drivers/base/regmap/regmap-irq.c | 18 +++++++---------- drivers/base/regmap/regmap-mmio.c | 22 +++++--------------- drivers/base/regmap/regmap-spi.c | 18 +++++++---------- drivers/base/regmap/regmap-spmi.c | 29 +++++++++------------------ drivers/base/regmap/regmap-w1.c | 16 ++++++--------- drivers/base/regmap/regmap.c | 18 +++++++---------- 14 files changed, 90 insertions(+), 166 deletions(-)
drivers/base/regmap/internal.h +1 -4
@@ -1,13 +1,10 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Register map access API internal header * * Copyright 2011 Wolfson Microelectronics plc * * Author: Mark Brown <[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 _REGMAP_INTERNAL_H
drivers/base/regmap/regcache-flat.c +7 -11
@@ -1,14 +1,10 @@ -/* -* Register cache access API - flat caching support -* -* Copyright 2012 Wolfson Microelectronics plc -* -* Author: Mark Brown <[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. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register cache access API - flat caching support +// +// Copyright 2012 Wolfson Microelectronics plc +// +// Author: Mark Brown <[email protected]> #include <linux/device.h> #include <linux/seq_file.h>
drivers/base/regmap/regcache-lzo.c +7 -11
@@ -1,14 +1,10 @@ -/* -* Register cache access API - LZO caching support -* -* Copyright 2011 Wolfson Microelectronics plc -* -* Author: Dimitris Papastamos <[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. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register cache access API - LZO caching support +// +// Copyright 2011 Wolfson Microelectronics plc +// +// Author: Dimitris Papastamos <[email protected]> #include <linux/device.h> #include <linux/lzo.h>
drivers/base/regmap/regcache-rbtree.c +7 -11
@@ -1,14 +1,10 @@ -/* -* Register cache access API - rbtree caching support -* -* Copyright 2011 Wolfson Microelectronics plc -* -* Author: Dimitris Papastamos <[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. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register cache access API - rbtree caching support +// +// Copyright 2011 Wolfson Microelectronics plc +// +// Author: Dimitris Papastamos <[email protected]> #include <linux/debugfs.h> #include <linux/device.h>
drivers/base/regmap/regcache.c +7 -11
@@ -1,14 +1,10 @@ -/* -* Register cache access API -* -* Copyright 2011 Wolfson Microelectronics plc -* -* Author: Dimitris Papastamos <[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. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register cache access API +// +// Copyright 2011 Wolfson Microelectronics plc +// +// Author: Dimitris Papastamos <[email protected]> #include <linux/bsearch.h> #include <linux/device.h>
drivers/base/regmap/regmap-ac97.c +5 -17
@@ -1,20 +1,8 @@ -/* -* Register map access API - AC'97 support -* -* Copyright 2013 Linaro Ltd. 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/>. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register map access API - AC'97 support +// +// Copyright 2013 Linaro Ltd. All rights reserved. #include <linux/clk.h> #include <linux/err.h>
drivers/base/regmap/regmap-debugfs.c +7 -11
@@ -1,14 +1,10 @@ -/* -* Register map access API - debugfs -* -* Copyright 2011 Wolfson Microelectronics plc -* -* Author: Mark Brown <[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. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register map access API - debugfs +// +// Copyright 2011 Wolfson Microelectronics plc +// +// Author: Mark Brown <[email protected]> #include <linux/slab.h> #include <linux/mutex.h>
drivers/base/regmap/regmap-i2c.c +7 -11
@@ -1,14 +1,10 @@ -/* -* Register map access API - I2C support -* -* Copyright 2011 Wolfson Microelectronics plc -* -* Author: Mark Brown <[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. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register map access API - I2C support +// +// Copyright 2011 Wolfson Microelectronics plc +// +// Author: Mark Brown <[email protected]> #include <linux/regmap.h> #include <linux/i2c.h>
drivers/base/regmap/regmap-irq.c +7 -11
@@ -1,14 +1,10 @@ -/* -* regmap based irq_chip -* -* Copyright 2011 Wolfson Microelectronics plc -* -* Author: Mark Brown <[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. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// regmap based irq_chip +// +// Copyright 2011 Wolfson Microelectronics plc +// +// Author: Mark Brown <[email protected]> #include <linux/device.h> #include <linux/export.h>
drivers/base/regmap/regmap-mmio.c +5 -17
@@ -1,20 +1,8 @@ -/* -* Register map access API - MMIO support -* -* Copyright (c) 2012, 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/>. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register map access API - MMIO support +// +// Copyright (c) 2012, NVIDIA CORPORATION. All rights reserved. #include <linux/clk.h> #include <linux/err.h>
drivers/base/regmap/regmap-spi.c +7 -11
@@ -1,14 +1,10 @@ -/* -* Register map access API - SPI support -* -* Copyright 2011 Wolfson Microelectronics plc -* -* Author: Mark Brown <[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. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register map access API - SPI support +// +// Copyright 2011 Wolfson Microelectronics plc +// +// Author: Mark Brown <[email protected]> #include <linux/regmap.h> #include <linux/spi/spi.h>
drivers/base/regmap/regmap-spmi.c +10 -19
@@ -1,22 +1,13 @@ -/* -* Register map access API - SPMI support -* -* Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. -* -* Based on regmap-i2c.c: -* Copyright 2011 Wolfson Microelectronics plc -* Author: Mark Brown <[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 and -* only version 2 as published by the Free Software Foundation. -* -* 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. -* -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register map access API - SPMI support +// +// Copyright (c) 2012-2013, The Linux Foundation. All rights reserved. +// +// Based on regmap-i2c.c: +// Copyright 2011 Wolfson Microelectronics plc +// Author: Mark Brown <[email protected]> +#include <linux/regmap.h> #include <linux/spmi.h> #include <linux/module.h>
drivers/base/regmap/regmap-w1.c +6 -10
@@ -1,13 +1,9 @@ -/* -* Register map access API - W1 (1-Wire) support -* -* Copyright (c) 2017 Radioavionica Corporation -* Author: Alex A. Mihaylov <[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 -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register map access API - W1 (1-Wire) support +// +// Copyright (c) 2017 Radioavionica Corporation +// Author: Alex A. Mihaylov <[email protected]> #include <linux/regmap.h> #include <linux/module.h>
drivers/base/regmap/regmap.c +7 -11
@@ -1,14 +1,10 @@ -/* -* Register map access API -* -* Copyright 2011 Wolfson Microelectronics plc -* -* Author: Mark Brown <[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. -*/ +// SPDX-License-Identifier: GPL-2.0 +// +// Register map access API +// +// Copyright 2011 Wolfson Microelectronics plc +// +// Author: Mark Brown <[email protected]> #include <linux/device.h> #include <linux/slab.h>
Signature · 1 line
2.21.0