aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/adc')
-rw-r--r--drivers/iio/adc/ad799x.c6
-rw-r--r--drivers/iio/adc/axp20x_adc.c5
-rw-r--r--drivers/iio/adc/cc10001_adc.c6
-rw-r--r--drivers/iio/adc/ep93xx_adc.c5
-rw-r--r--drivers/iio/adc/fsl-imx25-gcq.c5
-rw-r--r--drivers/iio/adc/lp8788_adc.c5
-rw-r--r--drivers/iio/adc/lpc18xx_adc.c5
-rw-r--r--drivers/iio/adc/ltc2485.c5
-rw-r--r--drivers/iio/adc/max1027.c5
-rw-r--r--drivers/iio/adc/max1363.c5
-rw-r--r--drivers/iio/adc/mcp320x.c5
-rw-r--r--drivers/iio/adc/sun4i-gpadc-iio.c5
-rw-r--r--drivers/iio/adc/ti-adc081c.c5
-rw-r--r--drivers/iio/adc/ti-adc084s021.c5
-rw-r--r--drivers/iio/adc/ti-ads8688.c5
-rw-r--r--drivers/iio/adc/ti-tlc4541.c5
16 files changed, 16 insertions, 66 deletions
diff --git a/drivers/iio/adc/ad799x.c b/drivers/iio/adc/ad799x.c
index 7a5b5d00a87d..5a3ca5904ded 100644
--- a/drivers/iio/adc/ad799x.c
+++ b/drivers/iio/adc/ad799x.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * iio/adc/ad799x.c 3 * iio/adc/ad799x.c
3 * Copyright (C) 2010-2011 Michael Hennerich, Analog Devices Inc. 4 * Copyright (C) 2010-2011 Michael Hennerich, Analog Devices Inc.
@@ -11,15 +12,10 @@
11 * based on linux/drivers/acron/char/pcf8583.c 12 * based on linux/drivers/acron/char/pcf8583.c
12 * Copyright (C) 2000 Russell King 13 * Copyright (C) 2000 Russell King
13 * 14 *
14 * This program is free software; you can redistribute it and/or modify
15 * it under the terms of the GNU General Public License version 2 as
16 * published by the Free Software Foundation.
17 *
18 * ad799x.c 15 * ad799x.c
19 * 16 *
20 * Support for ad7991, ad7995, ad7999, ad7992, ad7993, ad7994, ad7997, 17 * Support for ad7991, ad7995, ad7999, ad7992, ad7993, ad7994, ad7997,
21 * ad7998 and similar chips. 18 * ad7998 and similar chips.
22 *
23 */ 19 */
24 20
25#include <linux/interrupt.h> 21#include <linux/interrupt.h>
diff --git a/drivers/iio/adc/axp20x_adc.c b/drivers/iio/adc/axp20x_adc.c
index 5be789269353..88059480da17 100644
--- a/drivers/iio/adc/axp20x_adc.c
+++ b/drivers/iio/adc/axp20x_adc.c
@@ -1,11 +1,8 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* ADC driver for AXP20X and AXP22X PMICs 2/* ADC driver for AXP20X and AXP22X PMICs
2 * 3 *
3 * Copyright (c) 2016 Free Electrons NextThing Co. 4 * Copyright (c) 2016 Free Electrons NextThing Co.
4 * Quentin Schulz <quentin.schulz@free-electrons.com> 5 * Quentin Schulz <quentin.schulz@free-electrons.com>
5 *
6 * This program is free software; you can redistribute it and/or modify it under
7 * the terms of the GNU General Public License version 2 as published by the
8 * Free Software Foundation.
9 */ 6 */
10 7
11#include <linux/completion.h> 8#include <linux/completion.h>
diff --git a/drivers/iio/adc/cc10001_adc.c b/drivers/iio/adc/cc10001_adc.c
index 707d8b24b072..f93f1d93b80d 100644
--- a/drivers/iio/adc/cc10001_adc.c
+++ b/drivers/iio/adc/cc10001_adc.c
@@ -1,10 +1,6 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * Copyright (c) 2014-2015 Imagination Technologies Ltd. 3 * Copyright (c) 2014-2015 Imagination Technologies Ltd.
3 *
4 * This program is free software; you can redistribute it and/or modify it
5 * under the terms of the GNU General Public License version 2 as published by
6 * the Free Software Foundation.
7 *
8 */ 4 */
9 5
10#include <linux/clk.h> 6#include <linux/clk.h>
diff --git a/drivers/iio/adc/ep93xx_adc.c b/drivers/iio/adc/ep93xx_adc.c
index 5036c392cb20..5c97e8a511f2 100644
--- a/drivers/iio/adc/ep93xx_adc.c
+++ b/drivers/iio/adc/ep93xx_adc.c
@@ -1,12 +1,9 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * Driver for ADC module on the Cirrus Logic EP93xx series of SoCs 3 * Driver for ADC module on the Cirrus Logic EP93xx series of SoCs
3 * 4 *
4 * Copyright (C) 2015 Alexander Sverdlin 5 * Copyright (C) 2015 Alexander Sverdlin
5 * 6 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * The driver uses polling to get the conversion status. According to EP93xx 7 * The driver uses polling to get the conversion status. According to EP93xx
11 * datasheets, reading ADCResult register starts the conversion, but user is also 8 * datasheets, reading ADCResult register starts the conversion, but user is also
12 * responsible for ensuring that delay between adjacent conversion triggers is 9 * responsible for ensuring that delay between adjacent conversion triggers is
diff --git a/drivers/iio/adc/fsl-imx25-gcq.c b/drivers/iio/adc/fsl-imx25-gcq.c
index 929c617db364..df19ecae52f7 100644
--- a/drivers/iio/adc/fsl-imx25-gcq.c
+++ b/drivers/iio/adc/fsl-imx25-gcq.c
@@ -1,10 +1,7 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * Copyright (C) 2014-2015 Pengutronix, Markus Pargmann <mpa@pengutronix.de> 3 * Copyright (C) 2014-2015 Pengutronix, Markus Pargmann <mpa@pengutronix.de>
3 * 4 *
4 * This program is free software; you can redistribute it and/or modify it under
5 * the terms of the GNU General Public License version 2 as published by the
6 * Free Software Foundation.
7 *
8 * This is the driver for the imx25 GCQ (Generic Conversion Queue) 5 * This is the driver for the imx25 GCQ (Generic Conversion Queue)
9 * connected to the imx25 ADC. 6 * connected to the imx25 ADC.
10 */ 7 */
diff --git a/drivers/iio/adc/lp8788_adc.c b/drivers/iio/adc/lp8788_adc.c
index 3bc4df916420..c1fc1b678e0f 100644
--- a/drivers/iio/adc/lp8788_adc.c
+++ b/drivers/iio/adc/lp8788_adc.c
@@ -1,13 +1,10 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * TI LP8788 MFD - ADC driver 3 * TI LP8788 MFD - ADC driver
3 * 4 *
4 * Copyright 2012 Texas Instruments 5 * Copyright 2012 Texas Instruments
5 * 6 *
6 * Author: Milo(Woogyom) Kim <milo.kim@ti.com> 7 * Author: Milo(Woogyom) Kim <milo.kim@ti.com>
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 */ 8 */
12 9
13#include <linux/delay.h> 10#include <linux/delay.h>
diff --git a/drivers/iio/adc/lpc18xx_adc.c b/drivers/iio/adc/lpc18xx_adc.c
index 041dc4a3f66c..e400a95f553d 100644
--- a/drivers/iio/adc/lpc18xx_adc.c
+++ b/drivers/iio/adc/lpc18xx_adc.c
@@ -1,12 +1,9 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * IIO ADC driver for NXP LPC18xx ADC 3 * IIO ADC driver for NXP LPC18xx ADC
3 * 4 *
4 * Copyright (C) 2016 Joachim Eastwood <manabian@gmail.com> 5 * Copyright (C) 2016 Joachim Eastwood <manabian@gmail.com>
5 * 6 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * UNSUPPORTED hardware features: 7 * UNSUPPORTED hardware features:
11 * - Hardware triggers 8 * - Hardware triggers
12 * - Burst mode 9 * - Burst mode
diff --git a/drivers/iio/adc/ltc2485.c b/drivers/iio/adc/ltc2485.c
index b24c14037fd4..c418466d51fd 100644
--- a/drivers/iio/adc/ltc2485.c
+++ b/drivers/iio/adc/ltc2485.c
@@ -1,12 +1,9 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * ltc2485.c - Driver for Linear Technology LTC2485 ADC 3 * ltc2485.c - Driver for Linear Technology LTC2485 ADC
3 * 4 *
4 * Copyright (C) 2016 Alison Schofield <amsfield22@gmail.com> 5 * Copyright (C) 2016 Alison Schofield <amsfield22@gmail.com>
5 * 6 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 *
10 * Datasheet: http://cds.linear.com/docs/en/datasheet/2485fd.pdf 7 * Datasheet: http://cds.linear.com/docs/en/datasheet/2485fd.pdf
11 */ 8 */
12 9
diff --git a/drivers/iio/adc/max1027.c b/drivers/iio/adc/max1027.c
index 311c1a89c329..da84adfdb819 100644
--- a/drivers/iio/adc/max1027.c
+++ b/drivers/iio/adc/max1027.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0-only
1 /* 2 /*
2 * iio/adc/max1027.c 3 * iio/adc/max1027.c
3 * Copyright (C) 2014 Philippe Reynes 4 * Copyright (C) 2014 Philippe Reynes
@@ -6,10 +7,6 @@
6 * Copyright 2011 Analog Devices Inc (from AD7923 Driver) 7 * Copyright 2011 Analog Devices Inc (from AD7923 Driver)
7 * Copyright 2012 CS Systemes d'Information 8 * Copyright 2012 CS Systemes d'Information
8 * 9 *
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
12 *
13 * max1027.c 10 * max1027.c
14 * 11 *
15 * Partial support for max1027 and similar chips. 12 * Partial support for max1027 and similar chips.
diff --git a/drivers/iio/adc/max1363.c b/drivers/iio/adc/max1363.c
index a8d35aebee80..5c2cc61b666e 100644
--- a/drivers/iio/adc/max1363.c
+++ b/drivers/iio/adc/max1363.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0-only
1 /* 2 /*
2 * iio/adc/max1363.c 3 * iio/adc/max1363.c
3 * Copyright (C) 2008-2010 Jonathan Cameron 4 * Copyright (C) 2008-2010 Jonathan Cameron
@@ -9,10 +10,6 @@
9 * Copyright (C) 2000 Russell King 10 * Copyright (C) 2000 Russell King
10 * 11 *
11 * Driver for max1363 and similar chips. 12 * Driver for max1363 and similar chips.
12 *
13 * This program is free software; you can redistribute it and/or modify
14 * it under the terms of the GNU General Public License version 2 as
15 * published by the Free Software Foundation.
16 */ 13 */
17 14
18#include <linux/interrupt.h> 15#include <linux/interrupt.h>
diff --git a/drivers/iio/adc/mcp320x.c b/drivers/iio/adc/mcp320x.c
index a04856d8afdb..38bf10085696 100644
--- a/drivers/iio/adc/mcp320x.c
+++ b/drivers/iio/adc/mcp320x.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * Copyright (C) 2013 Oskar Andero <oskar.andero@gmail.com> 3 * Copyright (C) 2013 Oskar Andero <oskar.andero@gmail.com>
3 * Copyright (C) 2014 Rose Technology 4 * Copyright (C) 2014 Rose Technology
@@ -34,10 +35,6 @@
34 * http://ww1.microchip.com/downloads/en/DeviceDoc/21298c.pdf mcp3204/08 35 * http://ww1.microchip.com/downloads/en/DeviceDoc/21298c.pdf mcp3204/08
35 * http://ww1.microchip.com/downloads/en/DeviceDoc/21700E.pdf mcp3301 36 * http://ww1.microchip.com/downloads/en/DeviceDoc/21700E.pdf mcp3301
36 * http://ww1.microchip.com/downloads/en/DeviceDoc/21950D.pdf mcp3550/1/3 37 * http://ww1.microchip.com/downloads/en/DeviceDoc/21950D.pdf mcp3550/1/3
37 *
38 * This program is free software; you can redistribute it and/or modify
39 * it under the terms of the GNU General Public License version 2 as
40 * published by the Free Software Foundation.
41 */ 38 */
42 39
43#include <linux/err.h> 40#include <linux/err.h>
diff --git a/drivers/iio/adc/sun4i-gpadc-iio.c b/drivers/iio/adc/sun4i-gpadc-iio.c
index 04d7147e0110..a09e7f5dd8f7 100644
--- a/drivers/iio/adc/sun4i-gpadc-iio.c
+++ b/drivers/iio/adc/sun4i-gpadc-iio.c
@@ -1,11 +1,8 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* ADC driver for sunxi platforms' (A10, A13 and A31) GPADC 2/* ADC driver for sunxi platforms' (A10, A13 and A31) GPADC
2 * 3 *
3 * Copyright (c) 2016 Quentin Schulz <quentin.schulz@free-electrons.com> 4 * Copyright (c) 2016 Quentin Schulz <quentin.schulz@free-electrons.com>
4 * 5 *
5 * This program is free software; you can redistribute it and/or modify it under
6 * the terms of the GNU General Public License version 2 as published by the
7 * Free Software Foundation.
8 *
9 * The Allwinner SoCs all have an ADC that can also act as a touchscreen 6 * The Allwinner SoCs all have an ADC that can also act as a touchscreen
10 * controller and a thermal sensor. 7 * controller and a thermal sensor.
11 * The thermal sensor works only when the ADC acts as a touchscreen controller 8 * The thermal sensor works only when the ADC acts as a touchscreen controller
diff --git a/drivers/iio/adc/ti-adc081c.c b/drivers/iio/adc/ti-adc081c.c
index 405e3779c0c5..0235863ff77b 100644
--- a/drivers/iio/adc/ti-adc081c.c
+++ b/drivers/iio/adc/ti-adc081c.c
@@ -1,13 +1,10 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * TI ADC081C/ADC101C/ADC121C 8/10/12-bit ADC driver 3 * TI ADC081C/ADC101C/ADC121C 8/10/12-bit ADC driver
3 * 4 *
4 * Copyright (C) 2012 Avionic Design GmbH 5 * Copyright (C) 2012 Avionic Design GmbH
5 * Copyright (C) 2016 Intel 6 * Copyright (C) 2016 Intel
6 * 7 *
7 * This program is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License version 2 as
9 * published by the Free Software Foundation.
10 *
11 * Datasheets: 8 * Datasheets:
12 * http://www.ti.com/lit/ds/symlink/adc081c021.pdf 9 * http://www.ti.com/lit/ds/symlink/adc081c021.pdf
13 * http://www.ti.com/lit/ds/symlink/adc101c021.pdf 10 * http://www.ti.com/lit/ds/symlink/adc101c021.pdf
diff --git a/drivers/iio/adc/ti-adc084s021.c b/drivers/iio/adc/ti-adc084s021.c
index 25504640e126..bdedf456ee05 100644
--- a/drivers/iio/adc/ti-adc084s021.c
+++ b/drivers/iio/adc/ti-adc084s021.c
@@ -1,13 +1,10 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/** 2/**
2 * Copyright (C) 2017 Axis Communications AB 3 * Copyright (C) 2017 Axis Communications AB
3 * 4 *
4 * Driver for Texas Instruments' ADC084S021 ADC chip. 5 * Driver for Texas Instruments' ADC084S021 ADC chip.
5 * Datasheets can be found here: 6 * Datasheets can be found here:
6 * http://www.ti.com/lit/ds/symlink/adc084s021.pdf 7 * http://www.ti.com/lit/ds/symlink/adc084s021.pdf
7 *
8 * This program is free software; you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License version 2 as
10 * published by the Free Software Foundation.
11 */ 8 */
12 9
13#include <linux/err.h> 10#include <linux/err.h>
diff --git a/drivers/iio/adc/ti-ads8688.c b/drivers/iio/adc/ti-ads8688.c
index 8cb7a2034982..14fe7c320b52 100644
--- a/drivers/iio/adc/ti-ads8688.c
+++ b/drivers/iio/adc/ti-ads8688.c
@@ -1,9 +1,6 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * Copyright (C) 2015 Prevas A/S 3 * Copyright (C) 2015 Prevas A/S
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 */ 4 */
8 5
9#include <linux/device.h> 6#include <linux/device.h>
diff --git a/drivers/iio/adc/ti-tlc4541.c b/drivers/iio/adc/ti-tlc4541.c
index 2290024c89fc..4965246808bd 100644
--- a/drivers/iio/adc/ti-tlc4541.c
+++ b/drivers/iio/adc/ti-tlc4541.c
@@ -1,3 +1,4 @@
1// SPDX-License-Identifier: GPL-2.0-only
1/* 2/*
2 * TI tlc4541 ADC Driver 3 * TI tlc4541 ADC Driver
3 * 4 *
@@ -7,10 +8,6 @@
7 * http://www.ti.com/lit/gpn/tlc3541 8 * http://www.ti.com/lit/gpn/tlc3541
8 * http://www.ti.com/lit/gpn/tlc4541 9 * http://www.ti.com/lit/gpn/tlc4541
9 * 10 *
10 * This program is free software; you can redistribute it and/or modify
11 * it under the terms of the GNU General Public License version 2 as
12 * published by the Free Software Foundation.
13 *
14 * The tlc4541 requires 24 clock cycles to start a transfer. 11 * The tlc4541 requires 24 clock cycles to start a transfer.
15 * Conversion then takes 2.94us to complete before data is ready 12 * Conversion then takes 2.94us to complete before data is ready
16 * Data is returned MSB first. 13 * Data is returned MSB first.