staging: IIO: ADC: New driver for AD7606/AD7606-6/AD7606-4
authorMichael Hennerich <michael.hennerich@analog.com>
Tue, 22 Feb 2011 20:46:18 +0000 (21:46 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Feb 2011 22:40:03 +0000 (14:40 -0800)
commitb9618c0cacd7cf56cc3d073c1e9e9a8a3a12864e
tree569d5617db56bce9e0c059fa21aa4d0c9b1970c0
parent363907af85816adac5e60d48d3d84bba8f7201df
staging: IIO: ADC: New driver for AD7606/AD7606-6/AD7606-4

This patch adds support for the:
AD7606/AD7606-6/AD7606-4 8/6/4-Channel Data Acquisition
system (DAS) with 16-Bit, Bipolar, Simultaneous Sampling ADC.

Changes since V1:
IIO: ADC: New driver for AD7606/AD7606-6/AD7606-4: Apply review feedback

Rename sysfs node oversampling to oversampling_ratio.
Kconfig: Add GPIOLIB dependency.
Use range in mV to better match HWMON.
Rename ad7606_check_oversampling.
Fix various comments and style.
Reorder is_visible cases.
Use new gpio_request_one/array and friends.
Drop check for SPI max_speed_hz.

Changes since V2:
IIO: ADC: New driver for AD7606/AD7606-6/AD7606-4: Apply review feedback

Documentation: specify unit
Avoid raise condition in ad7606_scan_direct()
Check return value of bus ops read_block()

Changes since V3:
IIO: ADC: New driver for AD7606/AD7606-6/AD7606-4: Add missing include file

Add linux/sched.h

Changes since V4:
IIO: ADC: New driver for AD7606/AD7606-6/AD7606-4: Fix kconfig declaration

consistently use tristate to avoid configuration mismatches

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/ad7606.h [new file with mode: 0644]
drivers/staging/iio/adc/ad7606_core.c [new file with mode: 0644]
drivers/staging/iio/adc/ad7606_par.c [new file with mode: 0644]
drivers/staging/iio/adc/ad7606_ring.c [new file with mode: 0644]
drivers/staging/iio/adc/ad7606_spi.c [new file with mode: 0644]