]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
staging:iio: Move ad7793 driver out of staging
authorLars-Peter Clausen <lars@metafoo.de>
Wed, 21 Nov 2012 16:27:00 +0000 (16:27 +0000)
committerJonathan Cameron <jic23@kernel.org>
Fri, 30 Nov 2012 12:57:08 +0000 (12:57 +0000)
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>
drivers/iio/adc/Kconfig
drivers/iio/adc/Makefile
drivers/iio/adc/ad7793.c [moved from drivers/staging/iio/adc/ad7793.c with 99% similarity]
drivers/staging/iio/adc/Kconfig
drivers/staging/iio/adc/Makefile
include/linux/platform_data/ad7793.h [moved from drivers/staging/iio/adc/ad7793.h with 96% similarity]

index cd5eed60be2836479626c24eea423d588de6e2a7..408557b02441bfae914d388fd6d5cc08c6cd3ffb 100644 (file)
@@ -42,6 +42,18 @@ config AD7791
          To compile this driver as a module, choose M here: the module will be
          called ad7791.
 
+config AD7793
+       tristate "Analog Devices AD7793 and similar ADCs driver"
+       depends on SPI
+       select AD_SIGMA_DELTA
+       help
+         Say yes here to build support for Analog Devices AD7785, AD7792, AD7793,
+         AD7794 and AD7795 SPI analog to digital converters (ADC).
+         If unsure, say N (but it's safe to say "Y").
+
+         To compile this driver as a module, choose M here: the
+         module will be called AD7793.
+
 config AD7476
        tristate "Analog Devices AD7476 and similar 1-channel ADCs driver"
        depends on SPI
index 3256dc64a466123539cb2a800f6ed0135fd27066..78202d9eb9616f7e5d1f5d923e2e7741b17a4e24 100644 (file)
@@ -7,6 +7,7 @@ obj-$(CONFIG_AD7266) += ad7266.o
 obj-$(CONFIG_AD7298) += ad7298.o
 obj-$(CONFIG_AD7476) += ad7476.o
 obj-$(CONFIG_AD7791) += ad7791.o
+obj-$(CONFIG_AD7793) += ad7793.o
 obj-$(CONFIG_AD7887) += ad7887.o
 obj-$(CONFIG_AT91_ADC) += at91_adc.o
 obj-$(CONFIG_LP8788_ADC) += lp8788_adc.o
similarity index 99%
rename from drivers/staging/iio/adc/ad7793.c
rename to drivers/iio/adc/ad7793.c
index 8928609a18287a9817ff8683f3bb0a35aeb10e6f..a109e686b9f70c712d961f91dc26cc4616837dc8 100644 (file)
@@ -25,8 +25,7 @@
 #include <linux/iio/trigger_consumer.h>
 #include <linux/iio/triggered_buffer.h>
 #include <linux/iio/adc/ad_sigma_delta.h>
-
-#include "ad7793.h"
+#include <linux/platform_data/ad7793.h>
 
 /* Registers */
 #define AD7793_REG_COMM                0 /* Communications Register (WO, 8-bit) */
index dc8582b95b613ca24e1d9a440d4dc54d41524a03..fb8c239b0c882737da0eebb6d6b8d20d6d795dc2 100644 (file)
@@ -70,18 +70,6 @@ config AD7780
          To compile this driver as a module, choose M here: the
          module will be called ad7780.
 
-config AD7793
-       tristate "Analog Devices AD7793 and similar ADCs driver"
-       depends on SPI
-       select AD_SIGMA_DELTA
-       help
-         Say yes here to build support for Analog Devices AD7785, AD7792, AD7793,
-         AD7794 and AD7795 SPI analog to digital converters (ADC).
-         If unsure, say N (but it's safe to say "Y").
-
-         To compile this driver as a module, choose M here: the
-         module will be called AD7793.
-
 config AD7816
        tristate "Analog Devices AD7816/7/8 temperature sensor and ADC driver"
        depends on SPI
index 7281451a613aca4a021e7675b4864f5ea2ee0c36..d285596272a09ab51704bdc02113bc5e400a4413 100644 (file)
@@ -14,7 +14,6 @@ obj-$(CONFIG_AD799X) += ad799x.o
 
 obj-$(CONFIG_AD7291) += ad7291.o
 obj-$(CONFIG_AD7780) += ad7780.o
-obj-$(CONFIG_AD7793) += ad7793.o
 obj-$(CONFIG_AD7816) += ad7816.o
 obj-$(CONFIG_AD7192) += ad7192.o
 obj-$(CONFIG_ADT7410) += adt7410.o
similarity index 96%
rename from drivers/staging/iio/adc/ad7793.h
rename to include/linux/platform_data/ad7793.h
index 0e455de215e4d106e817ff946468aa45730c4e57..7ea6751aae6de48e3bdd44730b482c9c057de5a2 100644 (file)
@@ -5,12 +5,8 @@
  *
  * Licensed under the GPL-2.
  */
-#ifndef IIO_ADC_AD7793_H_
-#define IIO_ADC_AD7793_H_
-
-/*
- * TODO: struct ad7793_platform_data needs to go into include/linux/iio
- */
+#ifndef __LINUX_PLATFORM_DATA_AD7793_H__
+#define __LINUX_PLATFORM_DATA_AD7793_H__
 
 /**
  * enum ad7793_clock_source - AD7793 clock source selection