diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-08-10 17:36:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-08-27 17:53:24 +0100 |
commit | 32e0e7e08c32fbd61ddfb7e80ba96c13085f3d39 (patch) | |
tree | 969ee97cfbf6d3f30e69ea801ea66de29033b4a4 /drivers/staging/iio/adc/Kconfig | |
parent | af3008485ea0372fb9ce1f69f3768617d39eb4e6 (diff) | |
download | linux-stable-32e0e7e08c32fbd61ddfb7e80ba96c13085f3d39.tar.gz linux-stable-32e0e7e08c32fbd61ddfb7e80ba96c13085f3d39.tar.bz2 linux-stable-32e0e7e08c32fbd61ddfb7e80ba96c13085f3d39.zip |
staging:iio:ad7780: Use common Sigma Delta library
Convert the ad7780 driver to make use of the new common code for devices from
the Analog Devices Sigma Delta family.
As a bonus the ad7780 driver gains support for buffered mode. Although this is a
bit tricky. The ad7780 reports in the lower 4 unused bits of the data word the
internal gain used. The driver will update the scale attribute value depending
on the gain accordingly, but obviously this will only work if the gain does not
change while sampling. This is not perfect, but since we store the raw value in
the buffer an application which is aware of this can extract the gain factor
from the buffer as well an apply it accordingly.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/staging/iio/adc/Kconfig')
-rw-r--r-- | drivers/staging/iio/adc/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/staging/iio/adc/Kconfig b/drivers/staging/iio/adc/Kconfig index 845fb6c70ca3..d0eb27be381c 100644 --- a/drivers/staging/iio/adc/Kconfig +++ b/drivers/staging/iio/adc/Kconfig @@ -99,6 +99,7 @@ config AD7780 tristate "Analog Devices AD7780 AD7781 ADC driver" depends on SPI depends on GPIOLIB + select AD_SIGMA_DELTA help Say yes here to build support for Analog Devices AD7780 and AD7781 SPI analog to digital converters (ADC). |