iio: adc: Replace license text w/ SPDX identifier
Subsystems (22)
PATCH 1/1 iio: adc: Replace license text w/ SPDX identifier
From: Lucas Santos <[email protected]>
This patch removes all license boilerplate texts from the .c and .h files at drivers/iio/adc/ and, instead, adds the proper SPDX license identifiers.
--- drivers/iio/adc/ad7266.c | 3 +-- drivers/iio/adc/ad7291.c | 3 +-- drivers/iio/adc/ad7298.c | 3 +-- drivers/iio/adc/ad7766.c | 3 +-- drivers/iio/adc/ad7791.c | 3 +-- drivers/iio/adc/ad7793.c | 3 +-- drivers/iio/adc/ad7887.c | 3 +-- drivers/iio/adc/ad7923.c | 3 +-- drivers/iio/adc/ad799x.c | 5 +---- drivers/iio/adc/ad_sigma_delta.c | 3 +-- drivers/iio/adc/aspeed_adc.c | 6 +----- drivers/iio/adc/at91-sama5d2_adc.c | 10 +--------- drivers/iio/adc/at91_adc.c | 3 +-- drivers/iio/adc/axp20x_adc.c | 5 +---- drivers/iio/adc/axp288_adc.c | 13 +------------ drivers/iio/adc/bcm_iproc_adc.c | 13 +------------ drivers/iio/adc/berlin2-adc.c | 5 +---- drivers/iio/adc/cc10001_adc.c | 6 +----- drivers/iio/adc/cpcap-adc.c | 10 +--------- drivers/iio/adc/da9150-gpadc.c | 6 +----- drivers/iio/adc/dln2-adc.c | 5 +---- drivers/iio/adc/ep93xx_adc.c | 5 +---- drivers/iio/adc/exynos_adc.c | 11 +---------- drivers/iio/adc/fsl-imx25-gcq.c | 5 +---- drivers/iio/adc/hi8435.c | 6 +----- drivers/iio/adc/hx711.c | 6 +----- drivers/iio/adc/imx7d_adc.c | 6 +----- drivers/iio/adc/ina2xx-adc.c | 7 +------ drivers/iio/adc/lp8788_adc.c | 5 +---- drivers/iio/adc/lpc18xx_adc.c | 5 +---- drivers/iio/adc/lpc32xx_adc.c | 15 +-------------- drivers/iio/adc/ltc2471.c | 3 +-- drivers/iio/adc/ltc2485.c | 5 +---- drivers/iio/adc/ltc2497.c | 3 +-- drivers/iio/adc/max1027.c | 5 +---- drivers/iio/adc/max1118.c | 5 +---- drivers/iio/adc/max1363.c | 5 +---- drivers/iio/adc/mcp320x.c | 5 +---- drivers/iio/adc/mcp3422.c | 6 +----- drivers/iio/adc/men_z188_adc.c | 5 +---- drivers/iio/adc/meson_saradc.c | 5 +---- drivers/iio/adc/mt6577_auxadc.c | 10 +--------- drivers/iio/adc/mxs-lradc-adc.c | 11 +---------- drivers/iio/adc/nau7802.c | 3 +-- drivers/iio/adc/palmas_gpadc.c | 5 +---- drivers/iio/adc/qcom-pm8xxx-xoadc.c | 1 + drivers/iio/adc/qcom-spmi-iadc.c | 10 +--------- drivers/iio/adc/qcom-spmi-vadc.c | 10 +--------- drivers/iio/adc/rockchip_saradc.c | 11 +---------- drivers/iio/adc/spear_adc.c | 3 +-- drivers/iio/adc/stx104.c | 10 +--------- drivers/iio/adc/sun4i-gpadc-iio.c | 5 +---- drivers/iio/adc/ti-adc081c.c | 5 +---- drivers/iio/adc/ti-adc0832.c | 5 +---- drivers/iio/adc/ti-adc084s021.c | 5 +---- drivers/iio/adc/ti-adc108s102.c | 10 +--------- drivers/iio/adc/ti-adc12138.c | 5 +---- drivers/iio/adc/ti-ads1015.c | 5 +---- drivers/iio/adc/ti-ads8688.c | 5 +---- drivers/iio/adc/ti-tlc4541.c | 5 +---- drivers/iio/adc/ti_am335x_adc.c | 10 +--------- drivers/iio/adc/twl4030-madc.c | 16 +--------------- drivers/iio/adc/twl6030-gpadc.c | 16 +--------------- drivers/iio/adc/vf610_adc.c | 15 +-------------- drivers/iio/adc/viperboard_adc.c | 7 +------ drivers/iio/adc/xilinx-xadc-core.c | 3 +-- drivers/iio/adc/xilinx-xadc-events.c | 3 +-- drivers/iio/adc/xilinx-xadc.h | 3 +-- 68 files changed, 68 insertions(+), 361 deletions(-)
drivers/iio/adc/ad7266.c +1 -2
@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * AD7266/65 SPI ADC driver * * Copyright 2012 Analog Devices Inc. -* -* Licensed under the GPL-2. */ #include <linux/device.h>
drivers/iio/adc/ad7291.c +1 -2
@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * AD7291 8-Channel, I2C, 12-Bit SAR ADC with Temperature Sensor * * Copyright 2010-2011 Analog Devices Inc. -* -* Licensed under the GPL-2 or later. */ #include <linux/device.h>
drivers/iio/adc/ad7298.c +1 -2
@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * AD7298 SPI ADC driver * * Copyright 2011 Analog Devices Inc. -* -* Licensed under the GPL-2. */ #include <linux/device.h>
drivers/iio/adc/ad7766.c +1 -2
@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * AD7766/AD7767 SPI ADC driver * * Copyright 2016 Analog Devices Inc. -* -* Licensed under the GPL-2 or later. */ #include <linux/clk.h>
drivers/iio/adc/ad7791.c +1 -2
@@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * AD7787/AD7788/AD7789/AD7790/AD7791 SPI ADC driver * * Copyright 2012 Analog Devices Inc. * Author: Lars-Peter Clausen <[email protected]> -* -* Licensed under the GPL-2. */ #include <linux/interrupt.h>
drivers/iio/adc/ad7793.c +1 -2
@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * AD7785/AD7792/AD7793/AD7794/AD7795 SPI ADC driver * * Copyright 2011-2012 Analog Devices Inc. -* -* Licensed under the GPL-2. */ #include <linux/interrupt.h>
drivers/iio/adc/ad7887.c +1 -2
@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * AD7887 SPI ADC driver * * Copyright 2010-2011 Analog Devices Inc. -* -* Licensed under the GPL-2. */ #include <linux/device.h>
drivers/iio/adc/ad7923.c +1 -2
@@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * AD7904/AD7914/AD7923/AD7924 SPI ADC driver * * Copyright 2011 Analog Devices Inc (from AD7923 Driver) * Copyright 2012 CS Systemes d'Information -* -* Licensed under the GPL-2. */ #include <linux/device.h>
drivers/iio/adc/ad799x.c +1 -4
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * iio/adc/ad799x.c * Copyright (C) 2010-2011 Michael Hennerich, Analog Devices Inc.
@@ -11,10 +12,6 @@* based on linux/drivers/acron/char/pcf8583.c * Copyright (C) 2000 Russell King * -* 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. -* * ad799x.c * * Support for ad7991, ad7995, ad7999, ad7992, ad7993, ad7994, ad7997,
drivers/iio/adc/ad_sigma_delta.c +1 -2
@@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Support code for Analog Devices Sigma-Delta ADCs * * Copyright 2012 Analog Devices Inc. * Author: Lars-Peter Clausen <[email protected]> -* -* Licensed under the GPL-2. */ #include <linux/interrupt.h>
drivers/iio/adc/aspeed_adc.c +1 -5
@@ -1,12 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Aspeed AST2400/2500 ADC * * Copyright (C) 2017 Google, Inc. -* -* 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. -* */ #include <linux/clk.h>
drivers/iio/adc/at91-sama5d2_adc.c +1 -9
@@ -1,17 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Atmel ADC driver for SAMA5D2 devices and compatible. * * Copyright (C) 2015 Atmel, * 2015 Ludovic Desroches <[email protected]> -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* 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/bitops.h>
drivers/iio/adc/at91_adc.c +1 -2
@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Driver for the ADC present in the Atmel AT91 evaluation boards. * * Copyright 2011 Free Electrons -* -* Licensed under the GPLv2 or later. */ #include <linux/bitmap.h>
drivers/iio/adc/axp20x_adc.c +1 -4
@@ -1,11 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* ADC driver for AXP20X and AXP22X PMICs * * Copyright (c) 2016 Free Electrons NextThing Co. * Quentin Schulz <[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/completion.h>
drivers/iio/adc/axp288_adc.c +1 -12
@@ -1,19 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * axp288_adc.c - X-Powers AXP288 PMIC ADC Driver * * Copyright (C) 2014 Intel Corporation -* -* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -* -* 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; version 2 of the License. -* -* 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/module.h>
drivers/iio/adc/bcm_iproc_adc.c +1 -12
@@ -1,17 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright 2016 Broadcom -* -* 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 (the "GPL"). -* -* 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 version 2 (GPLv2) for more details. -* -* You should have received a copy of the GNU General Public License -* version 2 (GPLv2) along with this source code. */ #include <linux/module.h>
drivers/iio/adc/berlin2-adc.c +1 -4
@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Marvell Berlin2 ADC driver * * Copyright (C) 2015 Marvell Technology Group Ltd. * * Antoine Tenart <[email protected]> -* -* This file is licensed under the terms of the GNU General Public -* License version 2. This program is licensed "as is" without any -* warranty of any kind, whether express or implied. */ #include <linux/iio/iio.h>
drivers/iio/adc/cc10001_adc.c +1 -5
@@ -1,10 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2014-2015 Imagination Technologies Ltd. -* -* 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/clk.h>
drivers/iio/adc/cpcap-adc.c +1 -9
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2017 Tony Lindgren <[email protected]> *
@@ -5,15 +6,6 @@* earlier driver found in the Motorola Linux kernel: * * Copyright (C) 2009-2010 Motorola, 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 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/delay.h>
drivers/iio/adc/da9150-gpadc.c +1 -5
@@ -1,14 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * DA9150 GPADC Driver * * Copyright (c) 2014 Dialog Semiconductor * * Author: Adam Thomson <[email protected]> -* -* 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/kernel.h>
drivers/iio/adc/dln2-adc.c +1 -4
@@ -1,11 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Driver for the Diolan DLN-2 USB-ADC adapter * * Copyright (c) 2017 Jack Andersen -* -* 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, version 2. */ #include <linux/kernel.h>
drivers/iio/adc/ep93xx_adc.c +1 -4
@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Driver for ADC module on the Cirrus Logic EP93xx series of SoCs * * Copyright (C) 2015 Alexander Sverdlin * -* 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. -* * The driver uses polling to get the conversion status. According to EP93xx * datasheets, reading ADCResult register starts the conversion, but user is also * responsible for ensuring that delay between adjacent conversion triggers is
drivers/iio/adc/exynos_adc.c +1 -10
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * exynos_adc.c - Support for ADC in EXYNOS SoCs *
@@ -5,16 +6,6 @@* * Copyright (C) 2013 Naveen Krishna Chatradhi <[email protected]> * -* 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. -* -* 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. -* * 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., 675 Mass Ave, Cambridge, MA 02139, USA.
drivers/iio/adc/fsl-imx25-gcq.c +1 -4
@@ -1,10 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2014-2015 Pengutronix, Markus Pargmann <[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. -* * This is the driver for the imx25 GCQ (Generic Conversion Queue) * connected to the imx25 ADC. */
drivers/iio/adc/hi8435.c +1 -5
@@ -1,13 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Holt Integrated Circuits HI-8435 threshold detector driver * * Copyright (C) 2015 Zodiac Inflight Innovations * Copyright (C) 2015 Cogent Embedded, Inc. -* -* 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/delay.h>
drivers/iio/adc/hx711.c +1 -5
@@ -1,13 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * HX711: analog to digital converter for weight sensor module * * Copyright (c) 2016 Andreas Klinger <[email protected]> * -* 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. -* * 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
drivers/iio/adc/imx7d_adc.c +1 -5
@@ -1,12 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Freescale i.MX7D ADC driver * * Copyright (C) 2015 Freescale Semiconductor, Inc. -* -* 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/clk.h>
drivers/iio/adc/ina2xx-adc.c +1 -6
@@ -1,20 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * INA2XX Current and Power Monitors * * Copyright 2015 Baylibre SAS. * -* 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. -* * Based on linux/drivers/iio/adc/ad7291.c * Copyright 2010-2011 Analog Devices Inc. * * Based on linux/drivers/hwmon/ina2xx.c * Copyright 2012 Lothar Felten <[email protected]> * -* Licensed under the GPL-2 or later. -* * IIO driver for INA219-220-226-230-231 * * Configurable 7-bit I2C slave address from 0x40 to 0x4F
drivers/iio/adc/lp8788_adc.c +1 -4
@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * TI LP8788 MFD - ADC driver * * Copyright 2012 Texas Instruments * * Author: Milo(Woogyom) Kim <[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/delay.h>
drivers/iio/adc/lpc18xx_adc.c +1 -4
@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * IIO ADC driver for NXP LPC18xx ADC * * Copyright (C) 2016 Joachim Eastwood <[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. -* * UNSUPPORTED hardware features: * - Hardware triggers * - Burst mode
drivers/iio/adc/lpc32xx_adc.c +1 -14
@@ -1,23 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * lpc32xx_adc.c - Support for ADC in LPC32XX * * 3-channel, 10-bit ADC * * Copyright (C) 2011, 2012 Roland Stigge <[email protected]> -* -* 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. -* -* 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. -* -* 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <linux/module.h>
drivers/iio/adc/ltc2471.c +1 -2
@@ -1,11 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Driver for Linear Technology LTC2471 and LTC2473 voltage monitors * The LTC2473 is identical to the 2471, but reports a differential signal. * * Copyright (C) 2017 Topic Embedded Products * Author: Mike Looijmans <[email protected]> -* -* License: GPLv2 */ #include <linux/err.h>
drivers/iio/adc/ltc2485.c +1 -4
@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * ltc2485.c - Driver for Linear Technology LTC2485 ADC * * Copyright (C) 2016 Alison Schofield <[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. -* * Datasheet: http://cds.linear.com/docs/en/datasheet/2485fd.pdf */
drivers/iio/adc/ltc2497.c +1 -2
@@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * ltc2497.c - Driver for Analog Devices/Linear Technology LTC2497 ADC * * Copyright (C) 2017 Analog Devices Inc. * -* Licensed under the GPL-2. -* * Datasheet: http://cds.linear.com/docs/en/datasheet/2497fd.pdf */
drivers/iio/adc/max1027.c +1 -4
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * iio/adc/max1027.c * Copyright (C) 2014 Philippe Reynes
@@ -6,10 +7,6 @@* Copyright 2011 Analog Devices Inc (from AD7923 Driver) * Copyright 2012 CS Systemes d'Information * -* 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. -* * max1027.c * * Partial support for max1027 and similar chips.
drivers/iio/adc/max1118.c +1 -4
@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * MAX1117/MAX1118/MAX1119 8-bit, dual-channel ADCs driver * * Copyright (c) 2017 Akinobu Mita <[email protected]> * -* This file is subject to the terms and conditions of version 2 of -* the GNU General Public License. See the file COPYING in the main -* directory of this archive for more details. -* * Datasheet: https://datasheets.maximintegrated.com/en/ds/MAX1117-MAX1119.pdf * * SPI interface connections
drivers/iio/adc/max1363.c +1 -4
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * iio/adc/max1363.c * Copyright (C) 2008-2010 Jonathan Cameron
@@ -9,10 +10,6 @@* Copyright (C) 2000 Russell King * * Driver for max1363 and similar chips. -* -* 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/interrupt.h>
drivers/iio/adc/mcp320x.c +1 -4
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2013 Oskar Andero <[email protected]> * Copyright (C) 2014 Rose Technology
@@ -34,10 +35,6 @@* http://ww1.microchip.com/downloads/en/DeviceDoc/21298c.pdf mcp3204/08 * http://ww1.microchip.com/downloads/en/DeviceDoc/21700E.pdf mcp3301 * http://ww1.microchip.com/downloads/en/DeviceDoc/21950D.pdf mcp3550/1/3 -* -* 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/iio/adc/mcp3422.c +1 -5
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * mcp3422.c - driver for the Microchip mcp3421/2/3/4/5/6/7/8 chip family *
@@ -10,11 +11,6 @@* * This driver exports the value of analog input voltage to sysfs, the * voltage unit is nV. -* -* 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/err.h>
drivers/iio/adc/men_z188_adc.c +1 -4
@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * MEN 16z188 Analog to Digial Converter * * Copyright (C) 2014 MEN Mikroelektronik GmbH (www.men.de) * Author: Johannes Thumshirn <[email protected]> -* -* 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; version 2 of the License. */ #include <linux/kernel.h>
drivers/iio/adc/meson_saradc.c +1 -4
@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Amlogic Meson Successive Approximation Register (SAR) A/D Converter * * Copyright (C) 2017 Martin Blumenstingl <[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. -* * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */
drivers/iio/adc/mt6577_auxadc.c +1 -9
@@ -1,15 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2016 MediaTek Inc. * Author: Zhiyong Tao <[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. -* -* 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/clk.h>
drivers/iio/adc/mxs-lradc-adc.c +1 -10
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Freescale MXS LRADC ADC driver *
@@ -7,16 +8,6 @@* Authors: * Marek Vasut <[email protected]> * Ksenija Stanojevic <[email protected]> -* -* 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. -* -* 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/completion.h>
drivers/iio/adc/nau7802.c +1 -2
@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Driver for the Nuvoton NAU7802 ADC * * Copyright 2013 Free Electrons -* -* Licensed under the GPLv2 or later. */ #include <linux/delay.h>
drivers/iio/adc/palmas_gpadc.c +1 -4
@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * palmas-adc.c -- TI PALMAS GPADC. * * Copyright (c) 2013, NVIDIA Corporation. All rights reserved. * * Author: Pradeep Goudagunta <[email protected]> -* -* 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 version 2. */ #include <linux/module.h>
drivers/iio/adc/qcom-pm8xxx-xoadc.c +1 -0
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Qualcomm PM8xxx PMIC XOADC driver *
drivers/iio/adc/qcom-spmi-iadc.c +1 -9
@@ -1,14 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. -* -* 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/bitops.h>
drivers/iio/adc/qcom-spmi-vadc.c +1 -9
@@ -1,14 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. -* -* 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/bitops.h>
drivers/iio/adc/rockchip_saradc.c +1 -10
@@ -1,16 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Rockchip Successive Approximation Register (SAR) A/D Converter * Copyright (C) 2014 ROCKCHIP, Inc. -* -* 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. -* -* 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/module.h>
drivers/iio/adc/spear_adc.c +1 -2
@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * ST SPEAr ADC driver * * Copyright 2012 Stefan Roese <[email protected]> -* -* Licensed under the GPL-2. */ #include <linux/module.h>
drivers/iio/adc/stx104.c +1 -9
@@ -1,15 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 /* * IIO driver for the Apex Embedded Systems STX104 * Copyright (C) 2016 William Breathitt Gray -* -* 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 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/bitops.h> #include <linux/device.h>
drivers/iio/adc/sun4i-gpadc-iio.c +1 -4
@@ -1,11 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* ADC driver for sunxi platforms' (A10, A13 and A31) GPADC * * Copyright (c) 2016 Quentin Schulz <[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. -* * The Allwinner SoCs all have an ADC that can also act as a touchscreen * controller and a thermal sensor. * The thermal sensor works only when the ADC acts as a touchscreen controller
drivers/iio/adc/ti-adc081c.c +1 -4
@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * TI ADC081C/ADC101C/ADC121C 8/10/12-bit ADC driver * * Copyright (C) 2012 Avionic Design GmbH * Copyright (C) 2016 Intel * -* 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. -* * Datasheets: * http://www.ti.com/lit/ds/symlink/adc081c021.pdf * http://www.ti.com/lit/ds/symlink/adc101c021.pdf
drivers/iio/adc/ti-adc0832.c +1 -4
@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * ADC0831/ADC0832/ADC0834/ADC0838 8-bit ADC driver * * Copyright (c) 2016 Akinobu Mita <[email protected]> * -* This file is subject to the terms and conditions of version 2 of -* the GNU General Public License. See the file COPYING in the main -* directory of this archive for more details. -* * Datasheet: http://www.ti.com/lit/ds/symlink/adc0832-n.pdf */
drivers/iio/adc/ti-adc084s021.c +1 -4
@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /** * Copyright (C) 2017 Axis Communications AB * * Driver for Texas Instruments' ADC084S021 ADC chip. * Datasheets can be found here: * http://www.ti.com/lit/ds/symlink/adc084s021.pdf -* -* 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/iio/adc/ti-adc108s102.c +1 -9
@@ -1,18 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * TI ADC108S102 SPI ADC driver * * Copyright (c) 2013-2015 Intel Corporation. * Copyright (c) 2017 Siemens AG * -* 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. -* * This IIO device driver is designed to work with the following * analog to digital converters from Texas Instruments: * ADC108S102
drivers/iio/adc/ti-adc12138.c +1 -4
@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * ADC12130/ADC12132/ADC12138 12-bit plus sign ADC driver * * Copyright (c) 2016 Akinobu Mita <[email protected]> * -* This file is subject to the terms and conditions of version 2 of -* the GNU General Public License. See the file COPYING in the main -* directory of this archive for more details. -* * Datasheet: http://www.ti.com/lit/ds/symlink/adc12138.pdf */
drivers/iio/adc/ti-ads1015.c +1 -4
@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * ADS1015 - Texas Instruments Analog-to-Digital Converter * * Copyright (c) 2016, Intel Corporation. * -* This file is subject to the terms and conditions of version 2 of -* the GNU General Public License. See the file COPYING in the main -* directory of this archive for more details. -* * IIO driver for ADS1015 ADC 7-bit I2C slave address: * * 0x48 - ADDR connected to Ground * * 0x49 - ADDR connected to Vdd
drivers/iio/adc/ti-ads8688.c +1 -4
@@ -1,9 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2015 Prevas A/S -* -* 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/iio/adc/ti-tlc4541.c +1 -4
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * TI tlc4541 ADC Driver *
@@ -7,10 +8,6 @@* http://www.ti.com/lit/gpn/tlc3541 * http://www.ti.com/lit/gpn/tlc4541 * -* 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. -* * The tlc4541 requires 24 clock cycles to start a transfer. * Conversion then takes 2.94us to complete before data is ready * Data is returned MSB first.
drivers/iio/adc/ti_am335x_adc.c +1 -9
@@ -1,16 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * TI ADC MFD driver * * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.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 version 2. -* -* 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. */ #include <linux/kernel.h>
drivers/iio/adc/twl4030-madc.c +1 -15
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * * TWL4030 MADC module driver-This driver monitors the real time
@@ -12,21 +13,6 @@* Mikko Ylinen <[email protected]> * * Amit Kucheria <[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. -* -* 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. -* -* 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., 51 Franklin St, Fifth Floor, Boston, MA -* 02110-1301 USA -* */ #include <linux/device.h>
drivers/iio/adc/twl6030-gpadc.c +1 -15
@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * TWL6030 GPADC module driver *
@@ -12,21 +13,6 @@* Based on twl4030-madc.c * Copyright (C) 2008 Nokia Corporation * Mikko Ylinen <[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. -* -* 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. -* -* 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., 51 Franklin St, Fifth Floor, Boston, MA -* 02110-1301 USA -* */ #include <linux/interrupt.h> #include <linux/kernel.h>
drivers/iio/adc/vf610_adc.c +1 -14
@@ -1,21 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Freescale Vybrid vf610 ADC driver * * Copyright 2013 Freescale Semiconductor, Inc. -* -* 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. -* -* 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. -* -* 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <linux/module.h>
drivers/iio/adc/viperboard_adc.c +1 -6
@@ -1,15 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Nano River Technologies viperboard IIO ADC driver * * (C) 2012 by Lemonage GmbH * Author: Lars Poeschel <[email protected]> * All rights reserved. -* -* 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/kernel.h>
drivers/iio/adc/xilinx-xadc-core.c +1 -2
@@ -1,11 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Xilinx XADC driver * * Copyright 2013-2014 Analog Devices Inc. * Author: Lars-Peter Clauen <[email protected]> * -* Licensed under the GPL-2. -* * Documentation for the parts can be found at: * - XADC hardmacro: Xilinx UG480 * - ZYNQ XADC interface: Xilinx UG585
drivers/iio/adc/xilinx-xadc-events.c +1 -2
@@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Xilinx XADC driver * * Copyright 2013 Analog Devices Inc. * Author: Lars-Peter Clauen <[email protected]> -* -* Licensed under the GPL-2. */ #include <linux/iio/events.h>
drivers/iio/adc/xilinx-xadc.h +1 -2
@@ -1,10 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */ /* * Xilinx XADC driver * * Copyright 2013 Analog Devices Inc. * Author: Lars-Peter Clauen <[email protected]> -* -* Licensed under the GPL-2. */ #ifndef __IIO_XILINX_XADC__
Signature · 1 line
2.18.0
PATCH 1/1 iio: adc: Replace license text w/ SPDX identifier
Quoted 3 lines · Matheus Tavares
From: Lucas Santos <[email protected]>
This patch removes all license boilerplate texts from the .c and .h
I know other people don't follow the patch guidelines,
<https://www.kernel.org/doc/html/latest/process/submitting-patches.html>
but more info on proper commit message format in link.
<https://www.kernel.org/doc/html/latest/process/submitting-patches.html>
(Don't say "this patch" or "this commit" or "I changed") - use imperative present tense.
<https://www.kernel.org/doc/html/latest/process/submitting-patches.html>
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
Quoted 14 lines
files at
drivers/iio/adc/and, instead, adds the proper SPDX license identifiers.Signed-off-by Lucas Santos <[email protected]>Signed-off-by Matheus Tavares <[email protected]>--- drivers/iio/adc/ad7266.c | 3 +-- drivers/iio/adc/ad7291.c | 3 +-- drivers/iio/adc/ad7298.c | 3 +-- drivers/iio/adc/ad7766.c | 3 +-- drivers/iio/adc/ad7791.c | 3 +-- drivers/iio/adc/ad7793.c | 3 +-- drivers/iio/adc/ad7887.c | 3 +-- drivers/iio/adc/ad7923.c | 3 +--
Quoted 8 lines
drivers/iio/adc/ad799x.c | 5 +---- drivers/iio/adc/ad_sigma_delta.c | 3 +-- drivers/iio/adc/aspeed_adc.c | 6 +----- drivers/iio/adc/at91-sama5d2_adc.c | 10 +--------- drivers/iio/adc/at91_adc.c | 3 +-- drivers/iio/adc/axp20x_adc.c | 5 +---- drivers/iio/adc/axp288_adc.c | 13 +------------ drivers/iio/adc/bcm_iproc_adc.c | 13 +------------
Broadcom change:
Quoted 1,351 lines
drivers/iio/adc/berlin2-adc.c | 5 +---- drivers/iio/adc/cc10001_adc.c | 6 +----- drivers/iio/adc/cpcap-adc.c | 10 +--------- drivers/iio/adc/da9150-gpadc.c | 6 +----- drivers/iio/adc/dln2-adc.c | 5 +---- drivers/iio/adc/ep93xx_adc.c | 5 +---- drivers/iio/adc/exynos_adc.c | 11 +---------- drivers/iio/adc/fsl-imx25-gcq.c | 5 +---- drivers/iio/adc/hi8435.c | 6 +----- drivers/iio/adc/hx711.c | 6 +----- drivers/iio/adc/imx7d_adc.c | 6 +----- drivers/iio/adc/ina2xx-adc.c | 7 +------ drivers/iio/adc/lp8788_adc.c | 5 +---- drivers/iio/adc/lpc18xx_adc.c | 5 +---- drivers/iio/adc/lpc32xx_adc.c | 15 +-------------- drivers/iio/adc/ltc2471.c | 3 +-- drivers/iio/adc/ltc2485.c | 5 +---- drivers/iio/adc/ltc2497.c | 3 +-- drivers/iio/adc/max1027.c | 5 +---- drivers/iio/adc/max1118.c | 5 +---- drivers/iio/adc/max1363.c | 5 +---- drivers/iio/adc/mcp320x.c | 5 +---- drivers/iio/adc/mcp3422.c | 6 +----- drivers/iio/adc/men_z188_adc.c | 5 +---- drivers/iio/adc/meson_saradc.c | 5 +---- drivers/iio/adc/mt6577_auxadc.c | 10 +--------- drivers/iio/adc/mxs-lradc-adc.c | 11 +---------- drivers/iio/adc/nau7802.c | 3 +-- drivers/iio/adc/palmas_gpadc.c | 5 +---- drivers/iio/adc/qcom-pm8xxx-xoadc.c | 1 + drivers/iio/adc/qcom-spmi-iadc.c | 10 +--------- drivers/iio/adc/qcom-spmi-vadc.c | 10 +--------- drivers/iio/adc/rockchip_saradc.c | 11 +---------- drivers/iio/adc/spear_adc.c | 3 +-- drivers/iio/adc/stx104.c | 10 +--------- drivers/iio/adc/sun4i-gpadc-iio.c | 5 +---- drivers/iio/adc/ti-adc081c.c | 5 +---- drivers/iio/adc/ti-adc0832.c | 5 +---- drivers/iio/adc/ti-adc084s021.c | 5 +---- drivers/iio/adc/ti-adc108s102.c | 10 +--------- drivers/iio/adc/ti-adc12138.c | 5 +---- drivers/iio/adc/ti-ads1015.c | 5 +---- drivers/iio/adc/ti-ads8688.c | 5 +---- drivers/iio/adc/ti-tlc4541.c | 5 +---- drivers/iio/adc/ti_am335x_adc.c | 10 +--------- drivers/iio/adc/twl4030-madc.c | 16 +--------------- drivers/iio/adc/twl6030-gpadc.c | 16 +--------------- drivers/iio/adc/vf610_adc.c | 15 +-------------- drivers/iio/adc/viperboard_adc.c | 7 +------ drivers/iio/adc/xilinx-xadc-core.c | 3 +-- drivers/iio/adc/xilinx-xadc-events.c | 3 +-- drivers/iio/adc/xilinx-xadc.h | 3 +-- 68 files changed, 68 insertions(+), 361 deletions(-)drivers/iio/adc/ad7266.c +1
-2@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * AD7266/65 SPI ADC driver * * Copyright 2012 Analog Devices Inc. -* -* Licensed under the GPL-2. */ #include <linux/device.h> drivers/iio/adc/ad7291.c +1
-2@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * AD7291 8-Channel, I2C, 12-Bit SAR ADC with Temperature Sensor * * Copyright 2010-2011 Analog Devices Inc. -* -* Licensed under the GPL-2 or later. */ #include <linux/device.h> drivers/iio/adc/ad7298.c +1
-2@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * AD7298 SPI ADC driver * * Copyright 2011 Analog Devices Inc. -* -* Licensed under the GPL-2. */ #include <linux/device.h> drivers/iio/adc/ad7766.c +1
-2@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * AD7766/AD7767 SPI ADC driver * * Copyright 2016 Analog Devices Inc. -* -* Licensed under the GPL-2 or later. */ #include <linux/clk.h> drivers/iio/adc/ad7791.c +1
-2@@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * AD7787/AD7788/AD7789/AD7790/AD7791 SPI ADC driver * * Copyright 2012 Analog Devices Inc. * Author: Lars-Peter Clausen <[email protected]> -* -* Licensed under the GPL-2. */ #include <linux/interrupt.h> drivers/iio/adc/ad7793.c +1
-2@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * AD7785/AD7792/AD7793/AD7794/AD7795 SPI ADC driver * * Copyright 2011-2012 Analog Devices Inc. -* -* Licensed under the GPL-2. */ #include <linux/interrupt.h> drivers/iio/adc/ad7887.c +1
-2@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * AD7887 SPI ADC driver * * Copyright 2010-2011 Analog Devices Inc. -* -* Licensed under the GPL-2. */ #include <linux/device.h> drivers/iio/adc/ad7923.c +1
-2@@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * AD7904/AD7914/AD7923/AD7924 SPI ADC driver * * Copyright 2011 Analog Devices Inc (from AD7923 Driver) * Copyright 2012 CS Systemes d'Information -* -* Licensed under the GPL-2. */ #include <linux/device.h> drivers/iio/adc/ad799x.c +1
-4@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * iio/adc/ad799x.c * Copyright (C) 2010-2011 Michael Hennerich, Analog Devices Inc. @@ -11,10 +12,6 @@* based on linux/drivers/acron/char/pcf8583.c * Copyright (C) 2000 Russell King * -* 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. -* * ad799x.c * * Support for ad7991, ad7995, ad7999, ad7992, ad7993, ad7994, ad7997, drivers/iio/adc/ad_sigma_delta.c +1
-2@@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Support code for Analog Devices Sigma-Delta ADCs * * Copyright 2012 Analog Devices Inc. * Author: Lars-Peter Clausen <[email protected]> -* -* Licensed under the GPL-2. */ #include <linux/interrupt.h> drivers/iio/adc/aspeed_adc.c +1
-5@@ -1,12 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Aspeed AST2400/2500 ADC * * Copyright (C) 2017 Google, Inc. -* -* 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. -* */ #include <linux/clk.h> drivers/iio/adc/at91-sama5d2_adc.c +1
-9@@ -1,17 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Atmel ADC driver for SAMA5D2 devices and compatible. * * Copyright (C) 2015 Atmel, * 2015 Ludovic Desroches <[email protected]> -* -* This software is licensed under the terms of the GNU General Public -* License version 2, as published by the Free Software Foundation, and -* may be copied, distributed, and modified under those terms. -* -* 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/bitops.h> drivers/iio/adc/at91_adc.c +1
-2@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Driver for the ADC present in the Atmel AT91 evaluation boards. * * Copyright 2011 Free Electrons -* -* Licensed under the GPLv2 or later. */ #include <linux/bitmap.h> drivers/iio/adc/axp20x_adc.c +1
-4@@ -1,11 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* ADC driver for AXP20X and AXP22X PMICs * * Copyright (c) 2016 Free Electrons NextThing Co. * Quentin Schulz <[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/completion.h> drivers/iio/adc/axp288_adc.c +1
-12@@ -1,19 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * axp288_adc.c - X-Powers AXP288 PMIC ADC Driver * * Copyright (C) 2014 Intel Corporation -* -* ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -* -* 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; version 2 of the License. -* -* 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/module.h> drivers/iio/adc/bcm_iproc_adc.c +1
-12@@ -1,17 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright 2016 Broadcom -* -* 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 (the "GPL"). -* -* 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 version 2 (GPLv2) for more details. -* -* You should have received a copy of the GNU General Public License -* version 2 (GPLv2) along with this source code. */ #include <linux/module.h> drivers/iio/adc/berlin2-adc.c +1
-4@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Marvell Berlin2 ADC driver * * Copyright (C) 2015 Marvell Technology Group Ltd. * * Antoine Tenart <[email protected]> -* -* This file is licensed under the terms of the GNU General Public -* License version 2. This program is licensed "as is" without any -* warranty of any kind, whether express or implied. */ #include <linux/iio/iio.h> drivers/iio/adc/cc10001_adc.c +1
-5@@ -1,10 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2014-2015 Imagination Technologies Ltd. -* -* 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/clk.h> drivers/iio/adc/cpcap-adc.c +1
-9@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2017 Tony Lindgren <[email protected]> * @@ -5,15 +6,6 @@* earlier driver found in the Motorola Linux kernel: * * Copyright (C) 2009-2010 Motorola, 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 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/delay.h> drivers/iio/adc/da9150-gpadc.c +1
-5@@ -1,14 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * DA9150 GPADC Driver * * Copyright (c) 2014 Dialog Semiconductor * * Author: Adam Thomson <[email protected]> -* -* 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/kernel.h> drivers/iio/adc/dln2-adc.c +1
-4@@ -1,11 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Driver for the Diolan DLN-2 USB-ADC adapter * * Copyright (c) 2017 Jack Andersen -* -* 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, version 2. */ #include <linux/kernel.h> drivers/iio/adc/ep93xx_adc.c +1
-4@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Driver for ADC module on the Cirrus Logic EP93xx series of SoCs * * Copyright (C) 2015 Alexander Sverdlin * -* 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. -* * The driver uses polling to get the conversion status. According to EP93xx * datasheets, reading ADCResult register starts the conversion, but user is also * responsible for ensuring that delay between adjacent conversion triggers is drivers/iio/adc/exynos_adc.c +1
-10@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * exynos_adc.c - Support for ADC in EXYNOS SoCs * @@ -5,16 +6,6 @@* * Copyright (C) 2013 Naveen Krishna Chatradhi <[email protected]> * -* 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. -* -* 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. -* * 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., 675 Mass Ave, Cambridge, MA 02139, USA. drivers/iio/adc/fsl-imx25-gcq.c +1
-4@@ -1,10 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2014-2015 Pengutronix, Markus Pargmann <[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. -* * This is the driver for the imx25 GCQ (Generic Conversion Queue) * connected to the imx25 ADC. */ drivers/iio/adc/hi8435.c +1
-5@@ -1,13 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Holt Integrated Circuits HI-8435 threshold detector driver * * Copyright (C) 2015 Zodiac Inflight Innovations * Copyright (C) 2015 Cogent Embedded, Inc. -* -* 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/delay.h> drivers/iio/adc/hx711.c +1
-5@@ -1,13 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * HX711: analog to digital converter for weight sensor module * * Copyright (c) 2016 Andreas Klinger <[email protected]> * -* 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. -* * 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 drivers/iio/adc/imx7d_adc.c +1
-5@@ -1,12 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Freescale i.MX7D ADC driver * * Copyright (C) 2015 Freescale Semiconductor, Inc. -* -* 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/clk.h> drivers/iio/adc/ina2xx-adc.c +1
-6@@ -1,20 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * INA2XX Current and Power Monitors * * Copyright 2015 Baylibre SAS. * -* 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. -* * Based on linux/drivers/iio/adc/ad7291.c * Copyright 2010-2011 Analog Devices Inc. * * Based on linux/drivers/hwmon/ina2xx.c * Copyright 2012 Lothar Felten <[email protected]> * -* Licensed under the GPL-2 or later. -* * IIO driver for INA219-220-226-230-231 * * Configurable 7-bit I2C slave address from 0x40 to 0x4F drivers/iio/adc/lp8788_adc.c +1
-4@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * TI LP8788 MFD - ADC driver * * Copyright 2012 Texas Instruments * * Author: Milo(Woogyom) Kim <[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/delay.h> drivers/iio/adc/lpc18xx_adc.c +1
-4@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * IIO ADC driver for NXP LPC18xx ADC * * Copyright (C) 2016 Joachim Eastwood <[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. -* * UNSUPPORTED hardware features: * - Hardware triggers * - Burst mode drivers/iio/adc/lpc32xx_adc.c +1
-14@@ -1,23 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * lpc32xx_adc.c - Support for ADC in LPC32XX * * 3-channel, 10-bit ADC * * Copyright (C) 2011, 2012 Roland Stigge <[email protected]> -* -* 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. -* -* 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. -* -* 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <linux/module.h> drivers/iio/adc/ltc2471.c +1
-2@@ -1,11 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Driver for Linear Technology LTC2471 and LTC2473 voltage monitors * The LTC2473 is identical to the 2471, but reports a differential signal. * * Copyright (C) 2017 Topic Embedded Products * Author: Mike Looijmans <[email protected]> -* -* License: GPLv2 */ #include <linux/err.h> drivers/iio/adc/ltc2485.c +1
-4@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * ltc2485.c - Driver for Linear Technology LTC2485 ADC * * Copyright (C) 2016 Alison Schofield <[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. -* * Datasheet: http://cds.linear.com/docs/en/datasheet/2485fd.pdf */ drivers/iio/adc/ltc2497.c +1
-2@@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * ltc2497.c - Driver for Analog Devices/Linear Technology LTC2497 ADC * * Copyright (C) 2017 Analog Devices Inc. * -* Licensed under the GPL-2. -* * Datasheet: http://cds.linear.com/docs/en/datasheet/2497fd.pdf */ drivers/iio/adc/max1027.c +1
-4@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * iio/adc/max1027.c * Copyright (C) 2014 Philippe Reynes @@ -6,10 +7,6 @@* Copyright 2011 Analog Devices Inc (from AD7923 Driver) * Copyright 2012 CS Systemes d'Information * -* 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. -* * max1027.c * * Partial support for max1027 and similar chips. drivers/iio/adc/max1118.c +1
-4@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * MAX1117/MAX1118/MAX1119 8-bit, dual-channel ADCs driver * * Copyright (c) 2017 Akinobu Mita <[email protected]> * -* This file is subject to the terms and conditions of version 2 of -* the GNU General Public License. See the file COPYING in the main -* directory of this archive for more details. -* * Datasheet: https://datasheets.maximintegrated.com/en/ds/MAX1117-MAX1119.pdf * * SPI interface connections drivers/iio/adc/max1363.c +1
-4@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * iio/adc/max1363.c * Copyright (C) 2008-2010 Jonathan Cameron @@ -9,10 +10,6 @@* Copyright (C) 2000 Russell King * * Driver for max1363 and similar chips. -* -* 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/interrupt.h> drivers/iio/adc/mcp320x.c +1
-4@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2013 Oskar Andero <[email protected]> * Copyright (C) 2014 Rose Technology @@ -34,10 +35,6 @@* http://ww1.microchip.com/downloads/en/DeviceDoc/21298c.pdf mcp3204/08 * http://ww1.microchip.com/downloads/en/DeviceDoc/21700E.pdf mcp3301 * http://ww1.microchip.com/downloads/en/DeviceDoc/21950D.pdf mcp3550/1/3 -* -* 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/iio/adc/mcp3422.c +1
-5@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * mcp3422.c - driver for the Microchip mcp3421/2/3/4/5/6/7/8 chip family * @@ -10,11 +11,6 @@* * This driver exports the value of analog input voltage to sysfs, the * voltage unit is nV. -* -* 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/err.h> drivers/iio/adc/men_z188_adc.c +1
-4@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * MEN 16z188 Analog to Digial Converter * * Copyright (C) 2014 MEN Mikroelektronik GmbH (www.men.de) * Author: Johannes Thumshirn <[email protected]> -* -* 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; version 2 of the License. */ #include <linux/kernel.h> drivers/iio/adc/meson_saradc.c +1
-4@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Amlogic Meson Successive Approximation Register (SAR) A/D Converter * * Copyright (C) 2017 Martin Blumenstingl <[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. -* * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ drivers/iio/adc/mt6577_auxadc.c +1
-9@@ -1,15 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2016 MediaTek Inc. * Author: Zhiyong Tao <[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. -* -* 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/clk.h> drivers/iio/adc/mxs-lradc-adc.c +1
-10@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Freescale MXS LRADC ADC driver * @@ -7,16 +8,6 @@* Authors: * Marek Vasut <[email protected]> * Ksenija Stanojevic <[email protected]> -* -* 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. -* -* 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/completion.h> drivers/iio/adc/nau7802.c +1
-2@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Driver for the Nuvoton NAU7802 ADC * * Copyright 2013 Free Electrons -* -* Licensed under the GPLv2 or later. */ #include <linux/delay.h> drivers/iio/adc/palmas_gpadc.c +1
-4@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * palmas-adc.c -- TI PALMAS GPADC. * * Copyright (c) 2013, NVIDIA Corporation. All rights reserved. * * Author: Pradeep Goudagunta <[email protected]> -* -* 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 version 2. */ #include <linux/module.h> drivers/iio/adc/qcom-pm8xxx-xoadc.c +1
-0@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Qualcomm PM8xxx PMIC XOADC driver * drivers/iio/adc/qcom-spmi-iadc.c +1
-9@@ -1,14 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2012-2014, The Linux Foundation. All rights reserved. -* -* 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/bitops.h> drivers/iio/adc/qcom-spmi-vadc.c +1
-9@@ -1,14 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (c) 2012-2016, The Linux Foundation. All rights reserved. -* -* 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/bitops.h> drivers/iio/adc/rockchip_saradc.c +1
-10@@ -1,16 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Rockchip Successive Approximation Register (SAR) A/D Converter * Copyright (C) 2014 ROCKCHIP, Inc. -* -* 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. -* -* 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/module.h> drivers/iio/adc/spear_adc.c +1
-2@@ -1,9 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * ST SPEAr ADC driver * * Copyright 2012 Stefan Roese <[email protected]> -* -* Licensed under the GPL-2. */ #include <linux/module.h> drivers/iio/adc/stx104.c +1
-9@@ -1,15 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 /* * IIO driver for the Apex Embedded Systems STX104 * Copyright (C) 2016 William Breathitt Gray -* -* 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 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/bitops.h> #include <linux/device.h> drivers/iio/adc/sun4i-gpadc-iio.c +1
-4@@ -1,11 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* ADC driver for sunxi platforms' (A10, A13 and A31) GPADC * * Copyright (c) 2016 Quentin Schulz <[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. -* * The Allwinner SoCs all have an ADC that can also act as a touchscreen * controller and a thermal sensor. * The thermal sensor works only when the ADC acts as a touchscreen controller drivers/iio/adc/ti-adc081c.c +1
-4@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * TI ADC081C/ADC101C/ADC121C 8/10/12-bit ADC driver * * Copyright (C) 2012 Avionic Design GmbH * Copyright (C) 2016 Intel * -* 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. -* * Datasheets: * http://www.ti.com/lit/ds/symlink/adc081c021.pdf * http://www.ti.com/lit/ds/symlink/adc101c021.pdf drivers/iio/adc/ti-adc0832.c +1
-4@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * ADC0831/ADC0832/ADC0834/ADC0838 8-bit ADC driver * * Copyright (c) 2016 Akinobu Mita <[email protected]> * -* This file is subject to the terms and conditions of version 2 of -* the GNU General Public License. See the file COPYING in the main -* directory of this archive for more details. -* * Datasheet: http://www.ti.com/lit/ds/symlink/adc0832-n.pdf */ drivers/iio/adc/ti-adc084s021.c +1
-4@@ -1,13 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /** * Copyright (C) 2017 Axis Communications AB * * Driver for Texas Instruments' ADC084S021 ADC chip. * Datasheets can be found here: * http://www.ti.com/lit/ds/symlink/adc084s021.pdf -* -* 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/iio/adc/ti-adc108s102.c +1
-9@@ -1,18 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * TI ADC108S102 SPI ADC driver * * Copyright (c) 2013-2015 Intel Corporation. * Copyright (c) 2017 Siemens AG * -* 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. -* * This IIO device driver is designed to work with the following * analog to digital converters from Texas Instruments: * ADC108S102 drivers/iio/adc/ti-adc12138.c +1
-4@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * ADC12130/ADC12132/ADC12138 12-bit plus sign ADC driver * * Copyright (c) 2016 Akinobu Mita <[email protected]> * -* This file is subject to the terms and conditions of version 2 of -* the GNU General Public License. See the file COPYING in the main -* directory of this archive for more details. -* * Datasheet: http://www.ti.com/lit/ds/symlink/adc12138.pdf */ drivers/iio/adc/ti-ads1015.c +1
-4@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * ADS1015 - Texas Instruments Analog-to-Digital Converter * * Copyright (c) 2016, Intel Corporation. * -* This file is subject to the terms and conditions of version 2 of -* the GNU General Public License. See the file COPYING in the main -* directory of this archive for more details. -* * IIO driver for ADS1015 ADC 7-bit I2C slave address: * * 0x48 - ADDR connected to Ground * * 0x49 - ADDR connected to Vdd drivers/iio/adc/ti-ads8688.c +1
-4@@ -1,9 +1,6 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Copyright (C) 2015 Prevas A/S -* -* 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/iio/adc/ti-tlc4541.c +1
-4@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * TI tlc4541 ADC Driver * @@ -7,10 +8,6 @@* http://www.ti.com/lit/gpn/tlc3541 * http://www.ti.com/lit/gpn/tlc4541 * -* 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. -* * The tlc4541 requires 24 clock cycles to start a transfer. * Conversion then takes 2.94us to complete before data is ready * Data is returned MSB first. drivers/iio/adc/ti_am335x_adc.c +1
-9@@ -1,16 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0 /* * TI ADC MFD driver * * Copyright (C) 2012 Texas Instruments Incorporated - http://www.ti.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 version 2. -* -* 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. */ #include <linux/kernel.h> drivers/iio/adc/twl4030-madc.c +1
-15@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * * TWL4030 MADC module driver-This driver monitors the real time @@ -12,21 +13,6 @@* Mikko Ylinen <[email protected]> * * Amit Kucheria <[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. -* -* 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. -* -* 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., 51 Franklin St, Fifth Floor, Boston, MA -* 02110-1301 USA -* */ #include <linux/device.h> drivers/iio/adc/twl6030-gpadc.c +1
-15@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * TWL6030 GPADC module driver * @@ -12,21 +13,6 @@* Based on twl4030-madc.c * Copyright (C) 2008 Nokia Corporation * Mikko Ylinen <[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. -* -* 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. -* -* 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., 51 Franklin St, Fifth Floor, Boston, MA -* 02110-1301 USA -* */ #include <linux/interrupt.h> #include <linux/kernel.h> drivers/iio/adc/vf610_adc.c +1
-14@@ -1,21 +1,8 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Freescale Vybrid vf610 ADC driver * * Copyright 2013 Freescale Semiconductor, Inc. -* -* 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. -* -* 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. -* -* 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <linux/module.h> drivers/iio/adc/viperboard_adc.c +1
-6@@ -1,15 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Nano River Technologies viperboard IIO ADC driver * * (C) 2012 by Lemonage GmbH * Author: Lars Poeschel <[email protected]> * All rights reserved. -* -* 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/kernel.h> drivers/iio/adc/xilinx-xadc-core.c +1
-2@@ -1,11 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Xilinx XADC driver * * Copyright 2013-2014 Analog Devices Inc. * Author: Lars-Peter Clauen <[email protected]> * -* Licensed under the GPL-2. -* * Documentation for the parts can be found at: * - XADC hardmacro: Xilinx UG480 * - ZYNQ XADC interface: Xilinx UG585 drivers/iio/adc/xilinx-xadc-events.c +1
-2@@ -1,10 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Xilinx XADC driver * * Copyright 2013 Analog Devices Inc. * Author: Lars-Peter Clauen <[email protected]> -* -* Licensed under the GPL-2. */ #include <linux/iio/events.h> drivers/iio/adc/xilinx-xadc.h +1
-0@@ -1,10 +1,9 @@ +/* SPDX-License-Identifier: GPL-2.0 */
drivers/iio/adc/xilinx-xadc.h line 9
Quoted 10 lines
drivers/iio/adc/xilinx-xadc.h +0
-2/* * Xilinx XADC driver * * Copyright 2013 Analog Devices Inc. * Author: Lars-Peter Clauen <[email protected]> -* -* Licensed under the GPL-2. */ #ifndef __IIO_XILINX_XADC__
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/linux-aspeed/attachments/20181128/96cb42f3/attachment-0001.html>
Quoted 8 lines · Scott Branden
Quoted 8 lines · Matheus Tavares
From: Lucas Santos <[email protected]>
This patch removes all license boilerplate texts from the .c and .h
Quoted 8 lines
I know other people don't follow the patch guidelines,
but more info on proper commit message format in link.
(Don't say "this patch" or "this commit" or "I changed") - use imperative present tense.
https://www.kernel.org/doc/html/latest/process/submitting-patches.html
Ok, thanks for the review. I'll correct that in v2.
Matheus
Alexandre Belloni
maintainerHello,
Quoted 16 lines · Matheus Tavares
drivers/iio/adc/exynos_adc.c +1
-3@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * exynos_adc.c - Support for ADC in EXYNOS SoCs * @@ -5,16 +6,6 @@* * Copyright (C) 2013 Naveen Krishna Chatradhi <[email protected]> * -* 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
drivers/iio/adc/exynos_adc.c line 11
Quoted 10 lines
drivers/iio/adc/exynos_adc.c +0
-7-* (at your option) any later version. -* -* 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. -* * 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., 675 Mass Ave, Cambridge, MA 02139, USA.
You forgot to remove some of the boilerplate here.
Quoted 9 lines
drivers/iio/adc/hx711.c +1
-0@@ -1,13 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * HX711: analog to digital converter for weight sensor module *
drivers/iio/adc/hx711.c line 9
Quoted 10 lines
drivers/iio/adc/hx711.c +0
-5* Copyright (c) 2016 Andreas Klinger <[email protected]> * -* 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. -* * 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
and here
Quoted 7 lines
drivers/iio/adc/meson_saradc.c +1
-0@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /*
drivers/iio/adc/meson_saradc.c line 8
Quoted 10 lines
drivers/iio/adc/meson_saradc.c +0
-4* Amlogic Meson Successive Approximation Register (SAR) A/D Converter * * Copyright (C) 2017 Martin Blumenstingl <[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. -* * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>.
and here.
Quoted 1 line
drivers/iio/adc/meson_saradc.c +0
-0*/
Signature · 3 lines
Alexandre Belloni, Bootlin Embedded Linux and Kernel engineering https://bootlin.com
Thanks for the review! I will fix those places.
Matheus
Quoted 88 lines · Alexandre Belloni
Hello,
Quoted 16 lines · Matheus Tavares
drivers/iio/adc/exynos_adc.c +1
-3@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * exynos_adc.c - Support for ADC in EXYNOS SoCs * @@ -5,16 +6,6 @@* * Copyright (C) 2013 Naveen Krishna Chatradhi <[email protected]> * -* 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 drivers/iio/adc/exynos_adc.c line 11
Quoted 10 lines
drivers/iio/adc/exynos_adc.c +0
-7-* (at your option) any later version. -* -* 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. -* * 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., 675 Mass Ave, Cambridge, MA 02139, USA. You forgot to remove some of the boilerplate here.
Quoted 9 lines
drivers/iio/adc/hx711.c +1
-0@@ -1,13 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * HX711: analog to digital converter for weight sensor module * drivers/iio/adc/hx711.c line 9
Quoted 10 lines
drivers/iio/adc/hx711.c +0
-5* Copyright (c) 2016 Andreas Klinger <[email protected]> * -* 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. -* * 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 and here
Quoted 7 lines
drivers/iio/adc/meson_saradc.c +1
-0@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* drivers/iio/adc/meson_saradc.c line 8
Quoted 10 lines
drivers/iio/adc/meson_saradc.c +0
-4* Amlogic Meson Successive Approximation Register (SAR) A/D Converter * * Copyright (C) 2017 Martin Blumenstingl <[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. -* * You should have received a copy of the GNU General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. and here.
drivers/iio/adc/meson_saradc.c line 9
Quoted 1 line
drivers/iio/adc/meson_saradc.c +0
-0*/ --
Alexandre Belloni, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com--
You received this message because you are subscribed to the Google Groups "Kernel USP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to kernel-usp+unsubscribe at googlegroups.com. To post to this group, send email to kernel-usp at googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/kernel-usp/20181128192901.GG8952%40piout.net.
For more options, visit https://groups.google.com/d/optout.
Quoted 8 lines · Matheus Tavares
From: Lucas Santos <[email protected]>
This patch removes all license boilerplate texts from the .c and .h files at
drivers/iio/adc/and, instead, adds the proper SPDX license identifiers.Signed-off-by Lucas Santos <[email protected]>Signed-off-by Matheus Tavares <[email protected]>
[snip]
Quoted 37 lines
drivers/iio/adc/lpc18xx_adc.c +1
-4@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * IIO ADC driver for NXP LPC18xx ADC * * Copyright (C) 2016 Joachim Eastwood <[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. -* * UNSUPPORTED hardware features: * - Hardware triggers * - Burst mode drivers/iio/adc/lpc32xx_adc.c +1
-7@@ -1,23 +1,10 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * lpc32xx_adc.c - Support for ADC in LPC32XX * * 3-channel, 10-bit ADC * * Copyright (C) 2011, 2012 Roland Stigge <[email protected]> -* -* 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. -* -* This program is distributed in the hope that it will be useful,
drivers/iio/adc/lpc32xx_adc.c line 10
Quoted 10 lines
drivers/iio/adc/lpc32xx_adc.c +0
-7-* 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, write to the Free Software -* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include <linux/module.h>
For lpc18xx/lpc32xx:
--
Best wishes,
Vladimir
Quoted 90 lines · Matheus Tavares
From: Lucas Santos <[email protected]>
This patch removes all license boilerplate texts from the .c and .h files at
drivers/iio/adc/and, instead, adds the proper SPDX license identifiers.Signed-off-by Lucas Santos <[email protected]>Signed-off-by Matheus Tavares <[email protected]>--- drivers/iio/adc/ad7266.c | 3 +-- drivers/iio/adc/ad7291.c | 3 +-- drivers/iio/adc/ad7298.c | 3 +-- drivers/iio/adc/ad7766.c | 3 +-- drivers/iio/adc/ad7791.c | 3 +-- drivers/iio/adc/ad7793.c | 3 +-- drivers/iio/adc/ad7887.c | 3 +-- drivers/iio/adc/ad7923.c | 3 +-- drivers/iio/adc/ad799x.c | 5 +---- drivers/iio/adc/ad_sigma_delta.c | 3 +-- drivers/iio/adc/aspeed_adc.c | 6 +----- drivers/iio/adc/at91-sama5d2_adc.c | 10 +--------- drivers/iio/adc/at91_adc.c | 3 +-- drivers/iio/adc/axp20x_adc.c | 5 +---- drivers/iio/adc/axp288_adc.c | 13 +------------ drivers/iio/adc/bcm_iproc_adc.c | 13 +------------ drivers/iio/adc/berlin2-adc.c | 5 +---- drivers/iio/adc/cc10001_adc.c | 6 +----- drivers/iio/adc/cpcap-adc.c | 10 +--------- drivers/iio/adc/da9150-gpadc.c | 6 +----- drivers/iio/adc/dln2-adc.c | 5 +---- drivers/iio/adc/ep93xx_adc.c | 5 +---- drivers/iio/adc/exynos_adc.c | 11 +---------- drivers/iio/adc/fsl-imx25-gcq.c | 5 +---- drivers/iio/adc/hi8435.c | 6 +----- drivers/iio/adc/hx711.c | 6 +----- drivers/iio/adc/imx7d_adc.c | 6 +----- drivers/iio/adc/ina2xx-adc.c | 7 +------ drivers/iio/adc/lp8788_adc.c | 5 +---- drivers/iio/adc/lpc18xx_adc.c | 5 +---- drivers/iio/adc/lpc32xx_adc.c | 15 +-------------- drivers/iio/adc/ltc2471.c | 3 +-- drivers/iio/adc/ltc2485.c | 5 +---- drivers/iio/adc/ltc2497.c | 3 +-- drivers/iio/adc/max1027.c | 5 +---- drivers/iio/adc/max1118.c | 5 +---- drivers/iio/adc/max1363.c | 5 +---- drivers/iio/adc/mcp320x.c | 5 +---- drivers/iio/adc/mcp3422.c | 6 +----- drivers/iio/adc/men_z188_adc.c | 5 +---- drivers/iio/adc/meson_saradc.c | 5 +---- drivers/iio/adc/mt6577_auxadc.c | 10 +--------- drivers/iio/adc/mxs-lradc-adc.c | 11 +---------- drivers/iio/adc/nau7802.c | 3 +-- drivers/iio/adc/palmas_gpadc.c | 5 +---- drivers/iio/adc/qcom-pm8xxx-xoadc.c | 1 + drivers/iio/adc/qcom-spmi-iadc.c | 10 +--------- drivers/iio/adc/qcom-spmi-vadc.c | 10 +--------- drivers/iio/adc/rockchip_saradc.c | 11 +---------- drivers/iio/adc/spear_adc.c | 3 +-- drivers/iio/adc/stx104.c | 10 +--------- drivers/iio/adc/sun4i-gpadc-iio.c | 5 +---- drivers/iio/adc/ti-adc081c.c | 5 +---- drivers/iio/adc/ti-adc0832.c | 5 +---- drivers/iio/adc/ti-adc084s021.c | 5 +---- drivers/iio/adc/ti-adc108s102.c | 10 +--------- drivers/iio/adc/ti-adc12138.c | 5 +---- drivers/iio/adc/ti-ads1015.c | 5 +---- drivers/iio/adc/ti-ads8688.c | 5 +---- drivers/iio/adc/ti-tlc4541.c | 5 +---- drivers/iio/adc/ti_am335x_adc.c | 10 +--------- drivers/iio/adc/twl4030-madc.c | 16 +--------------- drivers/iio/adc/twl6030-gpadc.c | 16 +--------------- drivers/iio/adc/vf610_adc.c | 15 +-------------- drivers/iio/adc/viperboard_adc.c | 7 +------ drivers/iio/adc/xilinx-xadc-core.c | 3 +-- drivers/iio/adc/xilinx-xadc-events.c | 3 +-- drivers/iio/adc/xilinx-xadc.h | 3 +-- 68 files changed, 68 insertions(+), 361 deletions(-)drivers/iio/adc/stx104.c +1
-2@@ -1,15 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0 /* * IIO driver for the Apex Embedded Systems STX104 * Copyright (C) 2016 William Breathitt Gray -* -* This program is free software; you can redistribute it and/or modify
drivers/iio/adc/stx104.c line 7
Quoted 10 lines
drivers/iio/adc/stx104.c +0
-7-* it under the terms of the GNU General Public License, 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/bitops.h> #include <linux/device.h>
For stx104.c:
Krzysztof Kozlowski
maintainerQuoted 80 lines · Matheus Tavares
From: Lucas Santos <[email protected]>
This patch removes all license boilerplate texts from the .c and .h files at
drivers/iio/adc/and, instead, adds the proper SPDX license identifiers.Signed-off-by Lucas Santos <[email protected]>Signed-off-by Matheus Tavares <[email protected]>--- drivers/iio/adc/ad7266.c | 3 +-- drivers/iio/adc/ad7291.c | 3 +-- drivers/iio/adc/ad7298.c | 3 +-- drivers/iio/adc/ad7766.c | 3 +-- drivers/iio/adc/ad7791.c | 3 +-- drivers/iio/adc/ad7793.c | 3 +-- drivers/iio/adc/ad7887.c | 3 +-- drivers/iio/adc/ad7923.c | 3 +-- drivers/iio/adc/ad799x.c | 5 +---- drivers/iio/adc/ad_sigma_delta.c | 3 +-- drivers/iio/adc/aspeed_adc.c | 6 +----- drivers/iio/adc/at91-sama5d2_adc.c | 10 +--------- drivers/iio/adc/at91_adc.c | 3 +-- drivers/iio/adc/axp20x_adc.c | 5 +---- drivers/iio/adc/axp288_adc.c | 13 +------------ drivers/iio/adc/bcm_iproc_adc.c | 13 +------------ drivers/iio/adc/berlin2-adc.c | 5 +---- drivers/iio/adc/cc10001_adc.c | 6 +----- drivers/iio/adc/cpcap-adc.c | 10 +--------- drivers/iio/adc/da9150-gpadc.c | 6 +----- drivers/iio/adc/dln2-adc.c | 5 +---- drivers/iio/adc/ep93xx_adc.c | 5 +---- drivers/iio/adc/exynos_adc.c | 11 +---------- drivers/iio/adc/fsl-imx25-gcq.c | 5 +---- drivers/iio/adc/hi8435.c | 6 +----- drivers/iio/adc/hx711.c | 6 +----- drivers/iio/adc/imx7d_adc.c | 6 +----- drivers/iio/adc/ina2xx-adc.c | 7 +------ drivers/iio/adc/lp8788_adc.c | 5 +---- drivers/iio/adc/lpc18xx_adc.c | 5 +---- drivers/iio/adc/lpc32xx_adc.c | 15 +-------------- drivers/iio/adc/ltc2471.c | 3 +-- drivers/iio/adc/ltc2485.c | 5 +---- drivers/iio/adc/ltc2497.c | 3 +-- drivers/iio/adc/max1027.c | 5 +---- drivers/iio/adc/max1118.c | 5 +---- drivers/iio/adc/max1363.c | 5 +---- drivers/iio/adc/mcp320x.c | 5 +---- drivers/iio/adc/mcp3422.c | 6 +----- drivers/iio/adc/men_z188_adc.c | 5 +---- drivers/iio/adc/meson_saradc.c | 5 +---- drivers/iio/adc/mt6577_auxadc.c | 10 +--------- drivers/iio/adc/mxs-lradc-adc.c | 11 +---------- drivers/iio/adc/nau7802.c | 3 +-- drivers/iio/adc/palmas_gpadc.c | 5 +---- drivers/iio/adc/qcom-pm8xxx-xoadc.c | 1 + drivers/iio/adc/qcom-spmi-iadc.c | 10 +--------- drivers/iio/adc/qcom-spmi-vadc.c | 10 +--------- drivers/iio/adc/rockchip_saradc.c | 11 +---------- drivers/iio/adc/spear_adc.c | 3 +-- drivers/iio/adc/stx104.c | 10 +--------- drivers/iio/adc/sun4i-gpadc-iio.c | 5 +---- drivers/iio/adc/ti-adc081c.c | 5 +---- drivers/iio/adc/ti-adc0832.c | 5 +---- drivers/iio/adc/ti-adc084s021.c | 5 +---- drivers/iio/adc/ti-adc108s102.c | 10 +--------- drivers/iio/adc/ti-adc12138.c | 5 +---- drivers/iio/adc/ti-ads1015.c | 5 +---- drivers/iio/adc/ti-ads8688.c | 5 +---- drivers/iio/adc/ti-tlc4541.c | 5 +---- drivers/iio/adc/ti_am335x_adc.c | 10 +--------- drivers/iio/adc/twl4030-madc.c | 16 +--------------- drivers/iio/adc/twl6030-gpadc.c | 16 +--------------- drivers/iio/adc/vf610_adc.c | 15 +-------------- drivers/iio/adc/viperboard_adc.c | 7 +------ drivers/iio/adc/xilinx-xadc-core.c | 3 +-- drivers/iio/adc/xilinx-xadc-events.c | 3 +-- drivers/iio/adc/xilinx-xadc.h | 3 +-- 68 files changed, 68 insertions(+), 361 deletions(-)
(...)
Quoted 34 lines
drivers/iio/adc/ep93xx_adc.c +1
-4@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Driver for ADC module on the Cirrus Logic EP93xx series of SoCs * * Copyright (C) 2015 Alexander Sverdlin * -* 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. -* * The driver uses polling to get the conversion status. According to EP93xx * datasheets, reading ADCResult register starts the conversion, but user is also * responsible for ensuring that delay between adjacent conversion triggers is drivers/iio/adc/exynos_adc.c +1
-3@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * exynos_adc.c - Support for ADC in EXYNOS SoCs * @@ -5,16 +6,6 @@* * Copyright (C) 2013 Naveen Krishna Chatradhi <[email protected]> * -* 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
drivers/iio/adc/exynos_adc.c line 11
Quoted 10 lines
drivers/iio/adc/exynos_adc.c +0
-7-* (at your option) any later version. -* -* 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. -* * 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., 675 Mass Ave, Cambridge, MA 02139, USA.
The paragraph about writing to FSF should also go away, especially it is discouraged at first place (see checkpatch).
Best regards,
Krzysztof
Quoted 124 lines · Krzysztof Kozlowski
Quoted 80 lines · Matheus Tavares
From: Lucas Santos <[email protected]>
This patch removes all license boilerplate texts from the .c and .h files at
drivers/iio/adc/and, instead, adds the proper SPDX license identifiers.Signed-off-by Lucas Santos <[email protected]>Signed-off-by Matheus Tavares <[email protected]>--- drivers/iio/adc/ad7266.c | 3 +-- drivers/iio/adc/ad7291.c | 3 +-- drivers/iio/adc/ad7298.c | 3 +-- drivers/iio/adc/ad7766.c | 3 +-- drivers/iio/adc/ad7791.c | 3 +-- drivers/iio/adc/ad7793.c | 3 +-- drivers/iio/adc/ad7887.c | 3 +-- drivers/iio/adc/ad7923.c | 3 +-- drivers/iio/adc/ad799x.c | 5 +---- drivers/iio/adc/ad_sigma_delta.c | 3 +-- drivers/iio/adc/aspeed_adc.c | 6 +----- drivers/iio/adc/at91-sama5d2_adc.c | 10 +--------- drivers/iio/adc/at91_adc.c | 3 +-- drivers/iio/adc/axp20x_adc.c | 5 +---- drivers/iio/adc/axp288_adc.c | 13 +------------ drivers/iio/adc/bcm_iproc_adc.c | 13 +------------ drivers/iio/adc/berlin2-adc.c | 5 +---- drivers/iio/adc/cc10001_adc.c | 6 +----- drivers/iio/adc/cpcap-adc.c | 10 +--------- drivers/iio/adc/da9150-gpadc.c | 6 +----- drivers/iio/adc/dln2-adc.c | 5 +---- drivers/iio/adc/ep93xx_adc.c | 5 +---- drivers/iio/adc/exynos_adc.c | 11 +---------- drivers/iio/adc/fsl-imx25-gcq.c | 5 +---- drivers/iio/adc/hi8435.c | 6 +----- drivers/iio/adc/hx711.c | 6 +----- drivers/iio/adc/imx7d_adc.c | 6 +----- drivers/iio/adc/ina2xx-adc.c | 7 +------ drivers/iio/adc/lp8788_adc.c | 5 +---- drivers/iio/adc/lpc18xx_adc.c | 5 +---- drivers/iio/adc/lpc32xx_adc.c | 15 +-------------- drivers/iio/adc/ltc2471.c | 3 +-- drivers/iio/adc/ltc2485.c | 5 +---- drivers/iio/adc/ltc2497.c | 3 +-- drivers/iio/adc/max1027.c | 5 +---- drivers/iio/adc/max1118.c | 5 +---- drivers/iio/adc/max1363.c | 5 +---- drivers/iio/adc/mcp320x.c | 5 +---- drivers/iio/adc/mcp3422.c | 6 +----- drivers/iio/adc/men_z188_adc.c | 5 +---- drivers/iio/adc/meson_saradc.c | 5 +---- drivers/iio/adc/mt6577_auxadc.c | 10 +--------- drivers/iio/adc/mxs-lradc-adc.c | 11 +---------- drivers/iio/adc/nau7802.c | 3 +-- drivers/iio/adc/palmas_gpadc.c | 5 +---- drivers/iio/adc/qcom-pm8xxx-xoadc.c | 1 + drivers/iio/adc/qcom-spmi-iadc.c | 10 +--------- drivers/iio/adc/qcom-spmi-vadc.c | 10 +--------- drivers/iio/adc/rockchip_saradc.c | 11 +---------- drivers/iio/adc/spear_adc.c | 3 +-- drivers/iio/adc/stx104.c | 10 +--------- drivers/iio/adc/sun4i-gpadc-iio.c | 5 +---- drivers/iio/adc/ti-adc081c.c | 5 +---- drivers/iio/adc/ti-adc0832.c | 5 +---- drivers/iio/adc/ti-adc084s021.c | 5 +---- drivers/iio/adc/ti-adc108s102.c | 10 +--------- drivers/iio/adc/ti-adc12138.c | 5 +---- drivers/iio/adc/ti-ads1015.c | 5 +---- drivers/iio/adc/ti-ads8688.c | 5 +---- drivers/iio/adc/ti-tlc4541.c | 5 +---- drivers/iio/adc/ti_am335x_adc.c | 10 +--------- drivers/iio/adc/twl4030-madc.c | 16 +--------------- drivers/iio/adc/twl6030-gpadc.c | 16 +--------------- drivers/iio/adc/vf610_adc.c | 15 +-------------- drivers/iio/adc/viperboard_adc.c | 7 +------ drivers/iio/adc/xilinx-xadc-core.c | 3 +-- drivers/iio/adc/xilinx-xadc-events.c | 3 +-- drivers/iio/adc/xilinx-xadc.h | 3 +-- 68 files changed, 68 insertions(+), 361 deletions(-)(...)
Quoted 39 lines
drivers/iio/adc/ep93xx_adc.c +1
-4@@ -1,12 +1,9 @@ +// SPDX-License-Identifier: GPL-2.0 /* * Driver for ADC module on the Cirrus Logic EP93xx series of SoCs * * Copyright (C) 2015 Alexander Sverdlin * -* 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. -* * The driver uses polling to get the conversion status. According to EP93xx * datasheets, reading ADCResult register starts the conversion, but user is also * responsible for ensuring that delay between adjacent conversion triggers is drivers/iio/adc/exynos_adc.c +1
-8@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * exynos_adc.c - Support for ADC in EXYNOS SoCs * @@ -5,16 +6,6 @@* * Copyright (C) 2013 Naveen Krishna Chatradhi <[email protected]> * -* 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. -* -* 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
Quoted 9 lines
drivers/iio/adc/exynos_adc.c line 11
Quoted 5 lines
drivers/iio/adc/exynos_adc.c +0
-2-* 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, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. The paragraph about writing to FSF should also go away, especially it is discouraged at first place (see checkpatch).
Nice catch! Thanks,
Matheus
Quoted 2 lines
Best regards,
Krzysztof
Am Mittwoch, 28. November 2018, 18:53:12 CET schrieb Matheus Tavares:
Quoted 22 lines
From: Lucas Santos <[email protected]>
This patch removes all license boilerplate texts from the .c and .h files at
drivers/iio/adc/and, instead, adds the proper SPDX license identifiers.Signed-off-by Lucas Santos <[email protected]>Signed-off-by Matheus Tavares <[email protected]>---
drivers/iio/adc/rockchip_saradc.c +1
-3@@ -1,16 +1,7 @@ +// SPDX-License-Identifier: GPL-2.0+ /* * Rockchip Successive Approximation Register (SAR) A/D Converter * Copyright (C) 2014 ROCKCHIP, Inc. -* -* 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
drivers/iio/adc/rockchip_saradc.c line 7
Quoted 10 lines
drivers/iio/adc/rockchip_saradc.c +0
-7-* the Free Software Foundation; either version 2 of the License, or -* (at your option) any later version. -* -* 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/module.h>
For the Rockchip-part
Quoted 8 lines · On Wed, 28 Nov 2018 15:53:12 -0200 Matheus Tavares <[email protected]>…
From: Lucas Santos <[email protected]>
This patch removes all license boilerplate texts from the .c and .h files at
drivers/iio/adc/and, instead, adds the proper SPDX license identifiers.Signed-off-by Lucas Santos <[email protected]>Signed-off-by Matheus Tavares <[email protected]>
Hi Lucas, Matheus,
Doing this as a large all at once patch may seem like a good idea, but...
Whilst it is now kernel policy (sort of) to use SPDX, that doesn't correspond to converting all code without input from the original authors.
As such, I am normally only happy to apply SPDX patches with an ack from either the original author, or at least someone from the company who holds the copyright.
I have expressed before that I actually consider these mostly noise and so am not keen at all unless there is other work being done on a particular driver.
So please split this up into at least separate patches for each of the copyright holders, so they can provide an ACK if they are happy with this change.
Some companies will for example want their legal departments to do a review of whether SPDX is acceptable for their past contributions. (lots won't care btw - but the potential is there).
+CC Linus Walleij as one of his files doesn't have a license...
A few other comments inline...
Thanks,
Jonathan
Quoted 71 lines
--- drivers/iio/adc/ad7266.c | 3 +-- drivers/iio/adc/ad7291.c | 3 +-- drivers/iio/adc/ad7298.c | 3 +-- drivers/iio/adc/ad7766.c | 3 +-- drivers/iio/adc/ad7791.c | 3 +-- drivers/iio/adc/ad7793.c | 3 +-- drivers/iio/adc/ad7887.c | 3 +-- drivers/iio/adc/ad7923.c | 3 +-- drivers/iio/adc/ad799x.c | 5 +---- drivers/iio/adc/ad_sigma_delta.c | 3 +-- drivers/iio/adc/aspeed_adc.c | 6 +----- drivers/iio/adc/at91-sama5d2_adc.c | 10 +--------- drivers/iio/adc/at91_adc.c | 3 +-- drivers/iio/adc/axp20x_adc.c | 5 +---- drivers/iio/adc/axp288_adc.c | 13 +------------ drivers/iio/adc/bcm_iproc_adc.c | 13 +------------ drivers/iio/adc/berlin2-adc.c | 5 +---- drivers/iio/adc/cc10001_adc.c | 6 +----- drivers/iio/adc/cpcap-adc.c | 10 +--------- drivers/iio/adc/da9150-gpadc.c | 6 +----- drivers/iio/adc/dln2-adc.c | 5 +---- drivers/iio/adc/ep93xx_adc.c | 5 +---- drivers/iio/adc/exynos_adc.c | 11 +---------- drivers/iio/adc/fsl-imx25-gcq.c | 5 +---- drivers/iio/adc/hi8435.c | 6 +----- drivers/iio/adc/hx711.c | 6 +----- drivers/iio/adc/imx7d_adc.c | 6 +----- drivers/iio/adc/ina2xx-adc.c | 7 +------ drivers/iio/adc/lp8788_adc.c | 5 +---- drivers/iio/adc/lpc18xx_adc.c | 5 +---- drivers/iio/adc/lpc32xx_adc.c | 15 +-------------- drivers/iio/adc/ltc2471.c | 3 +-- drivers/iio/adc/ltc2485.c | 5 +---- drivers/iio/adc/ltc2497.c | 3 +-- drivers/iio/adc/max1027.c | 5 +---- drivers/iio/adc/max1118.c | 5 +---- drivers/iio/adc/max1363.c | 5 +---- drivers/iio/adc/mcp320x.c | 5 +---- drivers/iio/adc/mcp3422.c | 6 +----- drivers/iio/adc/men_z188_adc.c | 5 +---- drivers/iio/adc/meson_saradc.c | 5 +---- drivers/iio/adc/mt6577_auxadc.c | 10 +--------- drivers/iio/adc/mxs-lradc-adc.c | 11 +---------- drivers/iio/adc/nau7802.c | 3 +-- drivers/iio/adc/palmas_gpadc.c | 5 +---- drivers/iio/adc/qcom-pm8xxx-xoadc.c | 1 + drivers/iio/adc/qcom-spmi-iadc.c | 10 +--------- drivers/iio/adc/qcom-spmi-vadc.c | 10 +--------- drivers/iio/adc/rockchip_saradc.c | 11 +---------- drivers/iio/adc/spear_adc.c | 3 +-- drivers/iio/adc/stx104.c | 10 +--------- drivers/iio/adc/sun4i-gpadc-iio.c | 5 +---- drivers/iio/adc/ti-adc081c.c | 5 +---- drivers/iio/adc/ti-adc0832.c | 5 +---- drivers/iio/adc/ti-adc084s021.c | 5 +---- drivers/iio/adc/ti-adc108s102.c | 10 +--------- drivers/iio/adc/ti-adc12138.c | 5 +---- drivers/iio/adc/ti-ads1015.c | 5 +---- drivers/iio/adc/ti-ads8688.c | 5 +---- drivers/iio/adc/ti-tlc4541.c | 5 +---- drivers/iio/adc/ti_am335x_adc.c | 10 +--------- drivers/iio/adc/twl4030-madc.c | 16 +--------------- drivers/iio/adc/twl6030-gpadc.c | 16 +--------------- drivers/iio/adc/vf610_adc.c | 15 +-------------- drivers/iio/adc/viperboard_adc.c | 7 +------ drivers/iio/adc/xilinx-xadc-core.c | 3 +-- drivers/iio/adc/xilinx-xadc-events.c | 3 +-- drivers/iio/adc/xilinx-xadc.h | 3 +-- 68 files changed, 68 insertions(+), 361 deletions(-)
...
drivers/iio/adc/ina2xx-adc.c line 1
Quoted 6 lines
drivers/iio/adc/ina2xx-adc.c +1
-0@@ -1,20 +1,15 @@ +// SPDX-License-Identifier: GPL-2.0+
Oh great, contradictory license text. The first
part would normally imply GPL-2.0 and the second
is clearly GPL-2.0+
I'd leave this one be unless you can get input from the various authors.
Quoted 20 lines
drivers/iio/adc/ina2xx-adc.c +0
-6/* * INA2XX Current and Power Monitors * * Copyright 2015 Baylibre SAS. * -* 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. -* * Based on linux/drivers/iio/adc/ad7291.c * Copyright 2010-2011 Analog Devices Inc. * * Based on linux/drivers/hwmon/ina2xx.c * Copyright 2012 Lothar Felten <[email protected]> * -* Licensed under the GPL-2 or later. -* * IIO driver for INA219-220-226-230-231 * * Configurable 7-bit I2C slave address from 0x40 to 0x4F
...
Quoted 10 lines
drivers/iio/adc/max1363.c +1
-0@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0 /* * iio/adc/max1363.c * Copyright (C) 2008-2010 Jonathan Cameron
drivers/iio/adc/max1363.c line 13
Quoted 8 lines
drivers/iio/adc/max1363.c +0
-4@@ -9,10 +10,6 @@* Copyright (C) 2000 Russell King * * Driver for max1363 and similar chips. -* -* 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 one's mine so in a separate patch you can add.
drivers/iio/adc/qcom-pm8xxx-xoadc.c line 1
Quoted 6 lines
drivers/iio/adc/qcom-pm8xxx-xoadc.c +1
-0@@ -1,3 +1,4 @@ +// SPDX-License-Identifier: GPL-2.0
Oh goody. A file with out a license. oops.
Thankfully an author we can easily get hold of!
Linus, what should it be?
Quoted 3 lines
drivers/iio/adc/qcom-pm8xxx-xoadc.c +0
-0/* * Qualcomm PM8xxx PMIC XOADC driver *
Quoted 1 line · Jonathan Cameron
+CC Linus Walleij as one of his files doesn't have a license...
Sorry about that. I am fine with GPL-2.0 or GPL-2.0+ on any of "my" files. Feel free to add it with my Acked-by.
Yours,
Linus Walleij