staging: iio: adc: ad7476 new SPI ADC driver
authorMichael Hennerich <michael.hennerich@analog.com>
Mon, 11 Oct 2010 16:05:37 +0000 (18:05 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 12 Oct 2010 15:59:31 +0000 (08:59 -0700)
commit349282d82e929e7982ca53510437c0850ab5294a
tree29bda93578eb9de0287359fa7b6ff9c676597afb
parent1dd8b73227be6023df0be3a478c6086848cebd2e
staging: iio: adc: ad7476 new SPI ADC driver

New driver handling:
AD7475, AD7476, AD7477, AD7478, AD7466, AD7467, AD7468, AD7495
SPI micropower and high speed 12-/10-/8-Bit ADCs

staging: iio: adc: ad7476 apply list review feedback by Jonathan Cameron

Changes since last RFC post V1:
Mainly list review feedback by Jonathan Cameron

-Remove scan_attrs from chip info structure.
-Remove name from chip info structure, use new spi_device_id instead.
-Allow transfer buffers to live in their own cache lines, to avoid DMA/cache coherency issues.
-Move scan el code into the ring buffer file.
-Use helper function to alloc the pollfunc.
-Use regulator framework and get vref_mv from the regulator in case not specified by pdata.
-Devices with buit-in reference use vref from the chip info structure
-Don't error on missing platform_data

-Make vref_mv type unsigned short
-Print in_scale "Vref / 2^(bits)" if fractional.

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/adc/Kconfig
drivers/staging/iio/adc/Makefile
drivers/staging/iio/adc/ad7476.h [new file with mode: 0644]
drivers/staging/iio/adc/ad7476_core.c [new file with mode: 0644]
drivers/staging/iio/adc/ad7476_ring.c [new file with mode: 0644]