IIO: ADC: New driver for the AD7298 8-channel SPI ADC
authorMichael Hennerich <michael.hennerich@analog.com>
Thu, 24 Feb 2011 11:32:45 +0000 (12:32 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 28 Feb 2011 21:39:54 +0000 (13:39 -0800)
commit7c31b984c4d119d0e32a1696fd4ca6b506a73d10
tree472e752709dec123aafb7fb02fd4ba51268e7a54
parent5bfcf90bfb1889885211e8a853c6b70500065fce
IIO: ADC: New driver for the AD7298 8-channel SPI ADC

This patch adds support for the
AD7298:  8-Channel, 1MSPS, 12-Bit SAR ADC with Temperature Sensor
via SPI bus.

This patch replaces the existing ad7298.c driver completely.
It was necessary since, the old driver did not comply with the
IIO ABI for such devices.

Changes since V1:
IIO: ADC: New driver for the AD7298 8-channel SPI ADC

Add documentation for new sysfs file tempX_input.
Simplify bit defines.
Remove outdated comments.
Fix indention style.
ad7298_show_temp():
Add locking.
Simplify temperature calculation.
Change temperature result from degrees into milli degrees Celsius.
Rename file according to new sysfs ABI documentation

Add timestamp attributes.
Revise timestamp handling accordingly.
Preset timestamp generation.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Acked-by: Jonathan Cameron <jic23@cam.ac.uk>
Reviewed-by: Shubhrajyoti <Shubhrajyoti@ti.com>
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/ad7298.c [deleted file]
drivers/staging/iio/adc/ad7298.h [new file with mode: 0644]
drivers/staging/iio/adc/ad7298_core.c [new file with mode: 0644]
drivers/staging/iio/adc/ad7298_ring.c [new file with mode: 0644]