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