IIO: ADC: New driver for AD7190/AD7192/AD7195 4 Channel SPI ADC
authorMichael Hennerich <michael.hennerich@analog.com>
Wed, 17 Aug 2011 15:29:34 +0000 (17:29 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 23 Aug 2011 20:40:46 +0000 (13:40 -0700)
commit7a27b042f9cf6bd6e60c236a55d7a71a64287a84
treeb3d2c86993dfb5ca03e023f1bf50f45fb81f28c6
parent88b42f3a75ee53a4943069d4f8206f3c8d56bd58
IIO: ADC: New driver for AD7190/AD7192/AD7195 4 Channel SPI ADC

New driver for AD7190/AD7192/AD7195 4.8 kHz, Ultralow Noise, 24-Bit
Sigma-Delta ADC with PGA

These devices features a dual use data out ready DOUT/RDY output.
In order to avoid contentions on the SPI bus, it's necessary to use
spi bus locking. The DOUT/RDY output must also be wired to an
interrupt capable GPIO.

In INDIO_RING_TRIGGERED mode, this driver may block its SPI bus segment
for an extended period of time.

Changes since V1:

Add missing documentation.
Remove obsoleted include files.
Fix typos and style issues.
Fix buffer size.
Split ad7192_show() into two functions.
Avoid race condition add mutex.
Abandon IIO_CHAN macro.
Reorder elements in ad7192_platform_data.
Remove driver bus type.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/iio/Documentation/sysfs-bus-iio
drivers/staging/iio/adc/Kconfig
drivers/staging/iio/adc/Makefile
drivers/staging/iio/adc/ad7192.c [new file with mode: 0644]
drivers/staging/iio/adc/ad7192.h [new file with mode: 0644]