Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

iio:adc:ad7280a: Move out of staging

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

+12 -12
+11
drivers/iio/adc/Kconfig
··· 64 64 To compile this driver as a module, choose M here: the module will be 65 65 called ad7266. 66 66 67 + config AD7280 68 + tristate "Analog Devices AD7280A Lithium Ion Battery Monitoring System" 69 + depends on SPI 70 + select CRC8 71 + help 72 + Say yes here to build support for Analog Devices AD7280A 73 + Lithium Ion Battery Monitoring System. 74 + 75 + To compile this driver as a module, choose M here: the 76 + module will be called ad7280a 77 + 67 78 config AD7291 68 79 tristate "Analog Devices AD7291 ADC driver" 69 80 depends on I2C
+1
drivers/iio/adc/Makefile
··· 10 10 obj-$(CONFIG_AD7124) += ad7124.o 11 11 obj-$(CONFIG_AD7192) += ad7192.o 12 12 obj-$(CONFIG_AD7266) += ad7266.o 13 + obj-$(CONFIG_AD7280) += ad7280a.o 13 14 obj-$(CONFIG_AD7291) += ad7291.o 14 15 obj-$(CONFIG_AD7292) += ad7292.o 15 16 obj-$(CONFIG_AD7298) += ad7298.o
-11
drivers/staging/iio/adc/Kconfig
··· 15 15 To compile this driver as a module, choose M here: the 16 16 module will be called ad7816. 17 17 18 - config AD7280 19 - tristate "Analog Devices AD7280A Lithium Ion Battery Monitoring System" 20 - depends on SPI 21 - select CRC8 22 - help 23 - Say yes here to build support for Analog Devices AD7280A 24 - Lithium Ion Battery Monitoring System. 25 - 26 - To compile this driver as a module, choose M here: the 27 - module will be called ad7280a 28 - 29 18 endmenu
-1
drivers/staging/iio/adc/Makefile
··· 4 4 # 5 5 6 6 obj-$(CONFIG_AD7816) += ad7816.o 7 - obj-$(CONFIG_AD7280) += ad7280a.o
drivers/staging/iio/adc/ad7280a.c drivers/iio/adc/ad7280a.c