OSDN Git Service

iio:adc:ad7280a: Move out of staging
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 6 Feb 2022 19:03:28 +0000 (19:03 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 21 Feb 2022 19:33:05 +0000 (19:33 +0000)
This is a rather unusual device (in IIO anyway).  However, it has
a near to standard userspace ABI.

Note the work to move this out of staging was done against a minimal
QEMU model, which doesn't model all the features of the device.
I have no intention to upstream the QEMU model as it was developed
just to enable this driver cleanup.

https://github.com/jic23/qemu/tree/ad7280a-hacks

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
Link: https://lore.kernel.org/r/20220206190328.333093-21-jic23@kernel.org
drivers/iio/adc/Kconfig
drivers/iio/adc/Makefile
drivers/iio/adc/ad7280a.c [moved from drivers/staging/iio/adc/ad7280a.c with 100% similarity]
drivers/staging/iio/adc/Kconfig
drivers/staging/iio/adc/Makefile

index 4fdc8bf..71ab0a0 100644 (file)
@@ -64,6 +64,17 @@ config AD7266
          To compile this driver as a module, choose M here: the module will be
          called ad7266.
 
+config AD7280
+       tristate "Analog Devices AD7280A Lithium Ion Battery Monitoring System"
+       depends on SPI
+       select CRC8
+       help
+         Say yes here to build support for Analog Devices AD7280A
+         Lithium Ion Battery Monitoring System.
+
+         To compile this driver as a module, choose M here: the
+         module will be called ad7280a
+
 config AD7291
        tristate "Analog Devices AD7291 ADC driver"
        depends on I2C
index 4a8f183..39d806f 100644 (file)
@@ -10,6 +10,7 @@ obj-$(CONFIG_AD7091R5) += ad7091r5.o ad7091r-base.o
 obj-$(CONFIG_AD7124) += ad7124.o
 obj-$(CONFIG_AD7192) += ad7192.o
 obj-$(CONFIG_AD7266) += ad7266.o
+obj-$(CONFIG_AD7280) += ad7280a.o
 obj-$(CONFIG_AD7291) += ad7291.o
 obj-$(CONFIG_AD7292) += ad7292.o
 obj-$(CONFIG_AD7298) += ad7298.o
index b25f410..2f0d6cf 100644 (file)
@@ -15,15 +15,4 @@ config AD7816
          To compile this driver as a module, choose M here: the
          module will be called ad7816.
 
-config AD7280
-       tristate "Analog Devices AD7280A Lithium Ion Battery Monitoring System"
-       depends on SPI
-       select CRC8
-       help
-         Say yes here to build support for Analog Devices AD7280A
-         Lithium Ion Battery Monitoring System.
-
-         To compile this driver as a module, choose M here: the
-         module will be called ad7280a
-
 endmenu
index 6436a62..1e2a94c 100644 (file)
@@ -4,4 +4,3 @@
 #
 
 obj-$(CONFIG_AD7816) += ad7816.o
-obj-$(CONFIG_AD7280) += ad7280a.o