aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/iio/adc/Kconfig13
-rw-r--r--drivers/iio/adc/Makefile1
-rw-r--r--drivers/iio/adc/ad7887.c (renamed from drivers/staging/iio/adc/ad7887.c)2
-rw-r--r--drivers/staging/iio/adc/Kconfig13
-rw-r--r--drivers/staging/iio/adc/Makefile2
-rw-r--r--include/linux/platform_data/ad7887.h (renamed from drivers/staging/iio/adc/ad7887.h)5
6 files changed, 15 insertions, 21 deletions
diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
index 492758120338..706386ba02e3 100644
--- a/drivers/iio/adc/Kconfig
+++ b/drivers/iio/adc/Kconfig
@@ -45,6 +45,19 @@ config AD7476
45 To compile this driver as a module, choose M here: the 45 To compile this driver as a module, choose M here: the
46 module will be called ad7476. 46 module will be called ad7476.
47 47
48config AD7887
49 tristate "Analog Devices AD7887 ADC driver"
50 depends on SPI
51 select IIO_BUFFER
52 select IIO_TRIGGERED_BUFFER
53 help
54 Say yes here to build support for Analog Devices
55 AD7887 SPI analog to digital converter (ADC).
56 If unsure, say N (but it's safe to say "Y").
57
58 To compile this driver as a module, choose M here: the
59 module will be called ad7887.
60
48config AT91_ADC 61config AT91_ADC
49 tristate "Atmel AT91 ADC" 62 tristate "Atmel AT91 ADC"
50 depends on ARCH_AT91 63 depends on ARCH_AT91
diff --git a/drivers/iio/adc/Makefile b/drivers/iio/adc/Makefile
index 900995d5e179..034eacb8f7c9 100644
--- a/drivers/iio/adc/Makefile
+++ b/drivers/iio/adc/Makefile
@@ -6,5 +6,6 @@ obj-$(CONFIG_AD_SIGMA_DELTA) += ad_sigma_delta.o
6obj-$(CONFIG_AD7266) += ad7266.o 6obj-$(CONFIG_AD7266) += ad7266.o
7obj-$(CONFIG_AD7476) += ad7476.o 7obj-$(CONFIG_AD7476) += ad7476.o
8obj-$(CONFIG_AD7791) += ad7791.o 8obj-$(CONFIG_AD7791) += ad7791.o
9obj-$(CONFIG_AD7887) += ad7887.o
9obj-$(CONFIG_AT91_ADC) += at91_adc.o 10obj-$(CONFIG_AT91_ADC) += at91_adc.o
10obj-$(CONFIG_LP8788_ADC) += lp8788_adc.o 11obj-$(CONFIG_LP8788_ADC) += lp8788_adc.o
diff --git a/drivers/staging/iio/adc/ad7887.c b/drivers/iio/adc/ad7887.c
index 72cfe191cd83..fd62309b4d3d 100644
--- a/drivers/staging/iio/adc/ad7887.c
+++ b/drivers/iio/adc/ad7887.c
@@ -23,7 +23,7 @@
23#include <linux/iio/trigger_consumer.h> 23#include <linux/iio/trigger_consumer.h>
24#include <linux/iio/triggered_buffer.h> 24#include <linux/iio/triggered_buffer.h>
25 25
26#include "ad7887.h" 26#include <linux/platform_data/ad7887.h>
27 27
28#define AD7887_REF_DIS (1 << 5) /* on-chip reference disable */ 28#define AD7887_REF_DIS (1 << 5) /* on-chip reference disable */
29#define AD7887_DUAL (1 << 4) /* dual-channel mode */ 29#define AD7887_DUAL (1 << 4) /* dual-channel mode */
diff --git a/drivers/staging/iio/adc/Kconfig b/drivers/staging/iio/adc/Kconfig
index 71a515d0a6de..eba64fb64d82 100644
--- a/drivers/staging/iio/adc/Kconfig
+++ b/drivers/staging/iio/adc/Kconfig
@@ -68,19 +68,6 @@ config AD799X_RING_BUFFER
68 Say yes here to include ring buffer support in the AD799X 68 Say yes here to include ring buffer support in the AD799X
69 ADC driver. 69 ADC driver.
70 70
71config AD7887
72 tristate "Analog Devices AD7887 ADC driver"
73 depends on SPI
74 select IIO_BUFFER
75 select IIO_TRIGGERED_BUFFER
76 help
77 Say yes here to build support for Analog Devices
78 AD7887 SPI analog to digital converter (ADC).
79 If unsure, say N (but it's safe to say "Y").
80
81 To compile this driver as a module, choose M here: the
82 module will be called ad7887.
83
84config AD7780 71config AD7780
85 tristate "Analog Devices AD7780 and similar ADCs driver" 72 tristate "Analog Devices AD7780 and similar ADCs driver"
86 depends on SPI 73 depends on SPI
diff --git a/drivers/staging/iio/adc/Makefile b/drivers/staging/iio/adc/Makefile
index 8036fd14f68a..c56b41ee285b 100644
--- a/drivers/staging/iio/adc/Makefile
+++ b/drivers/staging/iio/adc/Makefile
@@ -17,8 +17,6 @@ ad799x-y := ad799x_core.o
17ad799x-$(CONFIG_AD799X_RING_BUFFER) += ad799x_ring.o 17ad799x-$(CONFIG_AD799X_RING_BUFFER) += ad799x_ring.o
18obj-$(CONFIG_AD799X) += ad799x.o 18obj-$(CONFIG_AD799X) += ad799x.o
19 19
20obj-$(CONFIG_AD7887) += ad7887.o
21
22ad7298-y := ad7298_core.o 20ad7298-y := ad7298_core.o
23ad7298-$(CONFIG_IIO_BUFFER) += ad7298_ring.o 21ad7298-$(CONFIG_IIO_BUFFER) += ad7298_ring.o
24obj-$(CONFIG_AD7298) += ad7298.o 22obj-$(CONFIG_AD7298) += ad7298.o
diff --git a/drivers/staging/iio/adc/ad7887.h b/include/linux/platform_data/ad7887.h
index 16c2d05e5e05..1e06eac3174d 100644
--- a/drivers/staging/iio/adc/ad7887.h
+++ b/include/linux/platform_data/ad7887.h
@@ -8,11 +8,6 @@
8#ifndef IIO_ADC_AD7887_H_ 8#ifndef IIO_ADC_AD7887_H_
9#define IIO_ADC_AD7887_H_ 9#define IIO_ADC_AD7887_H_
10 10
11/*
12 * TODO: struct ad7887_platform_data needs to go into include/linux/iio
13 */
14
15
16/** 11/**
17 * struct ad7887_platform_data - AD7887 ADC driver platform data 12 * struct ad7887_platform_data - AD7887 ADC driver platform data
18 * @en_dual: Whether to use dual channel mode. If set to true AIN1 becomes the 13 * @en_dual: Whether to use dual channel mode. If set to true AIN1 becomes the