Skip to content

Commit dae5f0a

Browse files
committed
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>
1 parent ff19473 commit dae5f0a

File tree

9 files changed

+10
-32
lines changed

9 files changed

+10
-32
lines changed

drivers/gpio/devres.c

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
12
/*
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
124
* This file is based on kernel/irq/devres.c
135
*
146
* Copyright (c) 2011 John Crispin <john@phrozen.org>

drivers/gpio/gpio-mmio.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1+
// SPDX-License-Identifier: GPL-2.0+
12
/*
23
* Generic driver for memory-mapped GPIO controllers.
34
*
45
* Copyright 2008 MontaVista Software, Inc.
56
* Copyright 2008,2010 Anton Vorontsov <cbouatmailru@gmail.com>
67
*
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-
*
128
* ....``.```~~~~````.`.`.`.`.```````'',,,.........`````......`.......
139
* ...`` ```````..
1410
* ..The simplest form of a GPIO controller that the driver supports is``

drivers/gpio/gpiolib-acpi.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
1+
// SPDX-License-Identifier: GPL-2.0
12
/*
23
* ACPI helpers for GPIO API
34
*
45
* Copyright (C) 2012, Intel Corporation
56
* Authors: Mathias Nyman <mathias.nyman@linux.intel.com>
67
* 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.
118
*/
129

1310
#include <linux/errno.h>

drivers/gpio/gpiolib-devprop.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1+
// SPDX-License-Identifier: GPL-2.0
12
/*
23
* Device property helpers for GPIO chips.
34
*
45
* Copyright (C) 2016, Intel Corporation
56
* 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.
107
*/
118

129
#include <linux/property.h>

drivers/gpio/gpiolib-legacy.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0
12
#include <linux/gpio/consumer.h>
23
#include <linux/gpio/driver.h>
34

drivers/gpio/gpiolib-of.c

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1+
// SPDX-License-Identifier: GPL-2.0
12
/*
23
* OF helpers for the GPIO API
34
*
45
* Copyright (c) 2007-2008 MontaVista Software, Inc.
56
*
67
* 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.
128
*/
139

1410
#include <linux/device.h>

drivers/gpio/gpiolib-sysfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0
12
#include <linux/idr.h>
23
#include <linux/mutex.h>
34
#include <linux/device.h>

drivers/gpio/gpiolib.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// SPDX-License-Identifier: GPL-2.0
12
#include <linux/bitmap.h>
23
#include <linux/kernel.h>
34
#include <linux/module.h>

drivers/gpio/gpiolib.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
1+
/* SPDX-License-Identifier: GPL-2.0 */
12
/*
23
* Internal GPIO functions.
34
*
45
* Copyright (C) 2013, Intel Corporation
56
* 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.
107
*/
118

129
#ifndef GPIOLIB_H

0 commit comments

Comments
 (0)