aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/iio/adc/Kconfig12
-rw-r--r--drivers/iio/adc/Makefile1
-rw-r--r--drivers/iio/adc/ad7298.c (renamed from drivers/staging/iio/adc/ad7298.c)2
-rw-r--r--drivers/staging/iio/adc/Kconfig12
-rw-r--r--drivers/staging/iio/adc/Makefile2
-rw-r--r--drivers/staging/iio/adc/ad7298.h20
6 files changed, 14 insertions, 35 deletions
diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig
index ef5200a6850e..cd5eed60be28 100644
--- a/drivers/iio/adc/Kconfig
+++ b/drivers/iio/adc/Kconfig
@@ -18,6 +18,18 @@ config AD7266
18 Say yes here to build support for Analog Devices AD7265 and AD7266 18 Say yes here to build support for Analog Devices AD7265 and AD7266
19 ADCs. 19 ADCs.
20 20
21config AD7298
22 tristate "Analog Devices AD7298 ADC driver"
23 depends on SPI
24 select IIO_BUFFER
25 select IIO_TRIGGERED_BUFFER
26 help
27 Say yes here to build support for Analog Devices AD7298
28 8 Channel ADC with temperature sensor.
29
30 To compile this driver as a module, choose M here: the
31 module will be called ad7298.
32
21config AD7791 33config AD7791
22 tristate "Analog Devices AD7791 ADC driver" 34 tristate "Analog Devices AD7791 ADC driver"
23 depends on SPI 35 depends on SPI
diff --git a/drivers/iio/adc/Makefile b/drivers/iio/adc/Makefile
index 54ac7bbcd01b..3256dc64a466 100644
--- a/drivers/iio/adc/Makefile
+++ b/drivers/iio/adc/Makefile
@@ -4,6 +4,7 @@
4 4
5obj-$(CONFIG_AD_SIGMA_DELTA) += ad_sigma_delta.o 5obj-$(CONFIG_AD_SIGMA_DELTA) += ad_sigma_delta.o
6obj-$(CONFIG_AD7266) += ad7266.o 6obj-$(CONFIG_AD7266) += ad7266.o
7obj-$(CONFIG_AD7298) += ad7298.o
7obj-$(CONFIG_AD7476) += ad7476.o 8obj-$(CONFIG_AD7476) += ad7476.o
8obj-$(CONFIG_AD7791) += ad7791.o 9obj-$(CONFIG_AD7791) += ad7791.o
9obj-$(CONFIG_AD7887) += ad7887.o 10obj-$(CONFIG_AD7887) += ad7887.o
diff --git a/drivers/staging/iio/adc/ad7298.c b/drivers/iio/adc/ad7298.c
index 2742a9de05db..441a9a265c12 100644
--- a/drivers/staging/iio/adc/ad7298.c
+++ b/drivers/iio/adc/ad7298.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 "ad7298.h" 26#include <linux/platform_data/ad7298.h>
27 27
28#define AD7298_WRITE (1 << 15) /* write to the control register */ 28#define AD7298_WRITE (1 << 15) /* write to the control register */
29#define AD7298_REPEAT (1 << 14) /* repeated conversion enable */ 29#define AD7298_REPEAT (1 << 14) /* repeated conversion enable */
diff --git a/drivers/staging/iio/adc/Kconfig b/drivers/staging/iio/adc/Kconfig
index 5086a46b8e9a..dc8582b95b61 100644
--- a/drivers/staging/iio/adc/Kconfig
+++ b/drivers/staging/iio/adc/Kconfig
@@ -10,18 +10,6 @@ config AD7291
10 Say yes here to build support for Analog Devices AD7291 10 Say yes here to build support for Analog Devices AD7291
11 8 Channel ADC with temperature sensor. 11 8 Channel ADC with temperature sensor.
12 12
13config AD7298
14 tristate "Analog Devices AD7298 ADC driver"
15 depends on SPI
16 select IIO_BUFFER
17 select IIO_TRIGGERED_BUFFER
18 help
19 Say yes here to build support for Analog Devices AD7298
20 8 Channel ADC with temperature sensor.
21
22 To compile this driver as a module, choose M here: the
23 module will be called ad7298.
24
25config AD7606 13config AD7606
26 tristate "Analog Devices AD7606 ADC driver" 14 tristate "Analog Devices AD7606 ADC driver"
27 depends on GPIOLIB 15 depends on GPIOLIB
diff --git a/drivers/staging/iio/adc/Makefile b/drivers/staging/iio/adc/Makefile
index 4beaa588256b..7281451a613a 100644
--- a/drivers/staging/iio/adc/Makefile
+++ b/drivers/staging/iio/adc/Makefile
@@ -12,8 +12,6 @@ ad799x-y := ad799x_core.o
12ad799x-$(CONFIG_AD799X_RING_BUFFER) += ad799x_ring.o 12ad799x-$(CONFIG_AD799X_RING_BUFFER) += ad799x_ring.o
13obj-$(CONFIG_AD799X) += ad799x.o 13obj-$(CONFIG_AD799X) += ad799x.o
14 14
15obj-$(CONFIG_AD7298) += ad7298.o
16
17obj-$(CONFIG_AD7291) += ad7291.o 15obj-$(CONFIG_AD7291) += ad7291.o
18obj-$(CONFIG_AD7780) += ad7780.o 16obj-$(CONFIG_AD7780) += ad7780.o
19obj-$(CONFIG_AD7793) += ad7793.o 17obj-$(CONFIG_AD7793) += ad7793.o
diff --git a/drivers/staging/iio/adc/ad7298.h b/drivers/staging/iio/adc/ad7298.h
deleted file mode 100644
index c8ac969ec016..000000000000
--- a/drivers/staging/iio/adc/ad7298.h
+++ /dev/null
@@ -1,20 +0,0 @@
1/*
2 * AD7298 SPI ADC driver
3 *
4 * Copyright 2011 Analog Devices Inc.
5 *
6 * Licensed under the GPL-2.
7 */
8
9#ifndef IIO_ADC_AD7298_H_
10#define IIO_ADC_AD7298_H_
11
12/**
13 * struct ad7298_platform_data - Platform data for the ad7298 ADC driver
14 * @ext_ref: Whether to use an external reference voltage.
15 **/
16struct ad7298_platform_data {
17 bool ext_ref;
18};
19
20#endif /* IIO_ADC_AD7298_H_ */