Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: Use SPDX header for core library

Use the SPDX headers and cut down on boilerplate to indicate the
license in the core gpiolib implementation.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

+10 -32
+2 -10
drivers/gpio/devres.c
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 2 - * drivers/gpio/devres.c - managed gpio resources 3 - * 4 - * This program is free software; you can redistribute it and/or modify 5 - * it under the terms of the GNU General Public License version 2 6 - * as published by the Free Software Foundation. 7 - * 8 - * You should have received a copy of the GNU General Public License 9 - * along with this program; if not, write to the Free Software 10 - * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 11 - * 3 + * devres.c - managed gpio resources 12 4 * This file is based on kernel/irq/devres.c 13 5 * 14 6 * Copyright (c) 2011 John Crispin <john@phrozen.org>
+1 -5
drivers/gpio/gpio-mmio.c
··· 1 + // SPDX-License-Identifier: GPL-2.0+ 1 2 /* 2 3 * Generic driver for memory-mapped GPIO controllers. 3 4 * 4 5 * Copyright 2008 MontaVista Software, Inc. 5 6 * Copyright 2008,2010 Anton Vorontsov <cbouatmailru@gmail.com> 6 - * 7 - * This program is free software; you can redistribute it and/or modify it 8 - * under the terms of the GNU General Public License as published by the 9 - * Free Software Foundation; either version 2 of the License, or (at your 10 - * option) any later version. 11 7 * 12 8 * ....``.```~~~~````.`.`.`.`.```````'',,,.........`````......`....... 13 9 * ...`` ```````..
+1 -4
drivers/gpio/gpiolib-acpi.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * ACPI helpers for GPIO API 3 4 * 4 5 * Copyright (C) 2012, Intel Corporation 5 6 * Authors: Mathias Nyman <mathias.nyman@linux.intel.com> 6 7 * Mika Westerberg <mika.westerberg@linux.intel.com> 7 - * 8 - * This program is free software; you can redistribute it and/or modify 9 - * it under the terms of the GNU General Public License version 2 as 10 - * published by the Free Software Foundation. 11 8 */ 12 9 13 10 #include <linux/errno.h>
+1 -4
drivers/gpio/gpiolib-devprop.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * Device property helpers for GPIO chips. 3 4 * 4 5 * Copyright (C) 2016, Intel Corporation 5 6 * Author: Mika Westerberg <mika.westerberg@linux.intel.com> 6 - * 7 - * This program is free software; you can redistribute it and/or modify 8 - * it under the terms of the GNU General Public License version 2 as 9 - * published by the Free Software Foundation. 10 7 */ 11 8 12 9 #include <linux/property.h>
+1
drivers/gpio/gpiolib-legacy.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 #include <linux/gpio/consumer.h> 2 3 #include <linux/gpio/driver.h> 3 4
+1 -5
drivers/gpio/gpiolib-of.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 /* 2 3 * OF helpers for the GPIO API 3 4 * 4 5 * Copyright (c) 2007-2008 MontaVista Software, Inc. 5 6 * 6 7 * Author: Anton Vorontsov <avorontsov@ru.mvista.com> 7 - * 8 - * This program is free software; you can redistribute it and/or modify 9 - * it under the terms of the GNU General Public License as published by 10 - * the Free Software Foundation; either version 2 of the License, or 11 - * (at your option) any later version. 12 8 */ 13 9 14 10 #include <linux/device.h>
+1
drivers/gpio/gpiolib-sysfs.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 #include <linux/idr.h> 2 3 #include <linux/mutex.h> 3 4 #include <linux/device.h>
+1
drivers/gpio/gpiolib.c
··· 1 + // SPDX-License-Identifier: GPL-2.0 1 2 #include <linux/bitmap.h> 2 3 #include <linux/kernel.h> 3 4 #include <linux/module.h>
+1 -4
drivers/gpio/gpiolib.h
··· 1 + /* SPDX-License-Identifier: GPL-2.0 */ 1 2 /* 2 3 * Internal GPIO functions. 3 4 * 4 5 * Copyright (C) 2013, Intel Corporation 5 6 * Author: Mika Westerberg <mika.westerberg@linux.intel.com> 6 - * 7 - * This program is free software; you can redistribute it and/or modify 8 - * it under the terms of the GNU General Public License version 2 as 9 - * published by the Free Software Foundation. 10 7 */ 11 8 12 9 #ifndef GPIOLIB_H