diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-11-21 11:27:00 -0500 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-11-30 07:57:08 -0500 |
commit | f87f1a2375a51ef8c5048bfce42587dbea1ca627 (patch) | |
tree | 8738bc7e299e45272933477510ad208d957a0795 | |
parent | e786cc26dcc52caba53d17a80888ed0b46d097f8 (diff) |
staging:iio: Move ad7793 driver out of staging
The driver does not expose any custom API to userspace and none of the standard
static code checker tools report any issues, so move it out of staging.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/iio/adc/Kconfig | 12 | ||||
-rw-r--r-- | drivers/iio/adc/Makefile | 1 | ||||
-rw-r--r-- | drivers/iio/adc/ad7793.c (renamed from drivers/staging/iio/adc/ad7793.c) | 3 | ||||
-rw-r--r-- | drivers/staging/iio/adc/Kconfig | 12 | ||||
-rw-r--r-- | drivers/staging/iio/adc/Makefile | 1 | ||||
-rw-r--r-- | include/linux/platform_data/ad7793.h (renamed from drivers/staging/iio/adc/ad7793.h) | 8 |
6 files changed, 16 insertions, 21 deletions
diff --git a/drivers/iio/adc/Kconfig b/drivers/iio/adc/Kconfig index cd5eed60be28..408557b02441 100644 --- a/drivers/iio/adc/Kconfig +++ b/drivers/iio/adc/Kconfig | |||
@@ -42,6 +42,18 @@ config AD7791 | |||
42 | To compile this driver as a module, choose M here: the module will be | 42 | To compile this driver as a module, choose M here: the module will be |
43 | called ad7791. | 43 | called ad7791. |
44 | 44 | ||
45 | config AD7793 | ||
46 | tristate "Analog Devices AD7793 and similar ADCs driver" | ||
47 | depends on SPI | ||
48 | select AD_SIGMA_DELTA | ||
49 | help | ||
50 | Say yes here to build support for Analog Devices AD7785, AD7792, AD7793, | ||
51 | AD7794 and AD7795 SPI analog to digital converters (ADC). | ||
52 | If unsure, say N (but it's safe to say "Y"). | ||
53 | |||
54 | To compile this driver as a module, choose M here: the | ||
55 | module will be called AD7793. | ||
56 | |||
45 | config AD7476 | 57 | config AD7476 |
46 | tristate "Analog Devices AD7476 and similar 1-channel ADCs driver" | 58 | tristate "Analog Devices AD7476 and similar 1-channel ADCs driver" |
47 | depends on SPI | 59 | depends on SPI |
diff --git a/drivers/iio/adc/Makefile b/drivers/iio/adc/Makefile index 3256dc64a466..78202d9eb961 100644 --- a/drivers/iio/adc/Makefile +++ b/drivers/iio/adc/Makefile | |||
@@ -7,6 +7,7 @@ obj-$(CONFIG_AD7266) += ad7266.o | |||
7 | obj-$(CONFIG_AD7298) += ad7298.o | 7 | obj-$(CONFIG_AD7298) += ad7298.o |
8 | obj-$(CONFIG_AD7476) += ad7476.o | 8 | obj-$(CONFIG_AD7476) += ad7476.o |
9 | obj-$(CONFIG_AD7791) += ad7791.o | 9 | obj-$(CONFIG_AD7791) += ad7791.o |
10 | obj-$(CONFIG_AD7793) += ad7793.o | ||
10 | obj-$(CONFIG_AD7887) += ad7887.o | 11 | obj-$(CONFIG_AD7887) += ad7887.o |
11 | obj-$(CONFIG_AT91_ADC) += at91_adc.o | 12 | obj-$(CONFIG_AT91_ADC) += at91_adc.o |
12 | obj-$(CONFIG_LP8788_ADC) += lp8788_adc.o | 13 | obj-$(CONFIG_LP8788_ADC) += lp8788_adc.o |
diff --git a/drivers/staging/iio/adc/ad7793.c b/drivers/iio/adc/ad7793.c index 8928609a1828..a109e686b9f7 100644 --- a/drivers/staging/iio/adc/ad7793.c +++ b/drivers/iio/adc/ad7793.c | |||
@@ -25,8 +25,7 @@ | |||
25 | #include <linux/iio/trigger_consumer.h> | 25 | #include <linux/iio/trigger_consumer.h> |
26 | #include <linux/iio/triggered_buffer.h> | 26 | #include <linux/iio/triggered_buffer.h> |
27 | #include <linux/iio/adc/ad_sigma_delta.h> | 27 | #include <linux/iio/adc/ad_sigma_delta.h> |
28 | 28 | #include <linux/platform_data/ad7793.h> | |
29 | #include "ad7793.h" | ||
30 | 29 | ||
31 | /* Registers */ | 30 | /* Registers */ |
32 | #define AD7793_REG_COMM 0 /* Communications Register (WO, 8-bit) */ | 31 | #define AD7793_REG_COMM 0 /* Communications Register (WO, 8-bit) */ |
diff --git a/drivers/staging/iio/adc/Kconfig b/drivers/staging/iio/adc/Kconfig index dc8582b95b61..fb8c239b0c88 100644 --- a/drivers/staging/iio/adc/Kconfig +++ b/drivers/staging/iio/adc/Kconfig | |||
@@ -70,18 +70,6 @@ config AD7780 | |||
70 | To compile this driver as a module, choose M here: the | 70 | To compile this driver as a module, choose M here: the |
71 | module will be called ad7780. | 71 | module will be called ad7780. |
72 | 72 | ||
73 | config AD7793 | ||
74 | tristate "Analog Devices AD7793 and similar ADCs driver" | ||
75 | depends on SPI | ||
76 | select AD_SIGMA_DELTA | ||
77 | help | ||
78 | Say yes here to build support for Analog Devices AD7785, AD7792, AD7793, | ||
79 | AD7794 and AD7795 SPI analog to digital converters (ADC). | ||
80 | If unsure, say N (but it's safe to say "Y"). | ||
81 | |||
82 | To compile this driver as a module, choose M here: the | ||
83 | module will be called AD7793. | ||
84 | |||
85 | config AD7816 | 73 | config AD7816 |
86 | tristate "Analog Devices AD7816/7/8 temperature sensor and ADC driver" | 74 | tristate "Analog Devices AD7816/7/8 temperature sensor and ADC driver" |
87 | depends on SPI | 75 | depends on SPI |
diff --git a/drivers/staging/iio/adc/Makefile b/drivers/staging/iio/adc/Makefile index 7281451a613a..d285596272a0 100644 --- a/drivers/staging/iio/adc/Makefile +++ b/drivers/staging/iio/adc/Makefile | |||
@@ -14,7 +14,6 @@ obj-$(CONFIG_AD799X) += ad799x.o | |||
14 | 14 | ||
15 | obj-$(CONFIG_AD7291) += ad7291.o | 15 | obj-$(CONFIG_AD7291) += ad7291.o |
16 | obj-$(CONFIG_AD7780) += ad7780.o | 16 | obj-$(CONFIG_AD7780) += ad7780.o |
17 | obj-$(CONFIG_AD7793) += ad7793.o | ||
18 | obj-$(CONFIG_AD7816) += ad7816.o | 17 | obj-$(CONFIG_AD7816) += ad7816.o |
19 | obj-$(CONFIG_AD7192) += ad7192.o | 18 | obj-$(CONFIG_AD7192) += ad7192.o |
20 | obj-$(CONFIG_ADT7410) += adt7410.o | 19 | obj-$(CONFIG_ADT7410) += adt7410.o |
diff --git a/drivers/staging/iio/adc/ad7793.h b/include/linux/platform_data/ad7793.h index 0e455de215e4..7ea6751aae6d 100644 --- a/drivers/staging/iio/adc/ad7793.h +++ b/include/linux/platform_data/ad7793.h | |||
@@ -5,12 +5,8 @@ | |||
5 | * | 5 | * |
6 | * Licensed under the GPL-2. | 6 | * Licensed under the GPL-2. |
7 | */ | 7 | */ |
8 | #ifndef IIO_ADC_AD7793_H_ | 8 | #ifndef __LINUX_PLATFORM_DATA_AD7793_H__ |
9 | #define IIO_ADC_AD7793_H_ | 9 | #define __LINUX_PLATFORM_DATA_AD7793_H__ |
10 | |||
11 | /* | ||
12 | * TODO: struct ad7793_platform_data needs to go into include/linux/iio | ||
13 | */ | ||
14 | 10 | ||
15 | /** | 11 | /** |
16 | * enum ad7793_clock_source - AD7793 clock source selection | 12 | * enum ad7793_clock_source - AD7793 clock source selection |