iio:adc: Add common code for ADI Sigma Delta devices
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 10 Aug 2012 16:36:00 +0000 (17:36 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 27 Aug 2012 16:53:12 +0000 (17:53 +0100)
commitaf3008485ea0372fb9ce1f69f3768617d39eb4e6
treed6c6ca6ed6f6ec0a84e43827503870fd05bb7fac
parent2d66f389ccf2c3ffea93c0270ef34186e4995333
iio:adc: Add common code for ADI Sigma Delta devices

Most devices from the Analog Devices Sigma Delta family use a similar scheme for
communication with the device. This includes register access, as well as trigger
handling. But each device sub-family has different features and different
register layouts (some even have no registers at all) and thus it is impractical
to try to support all of the devices by the same driver. This patch adds a
common base library for Sigma Delta converter devices. It will be used by
individual drivers.

This code is mostly based on the three existing Sigma Delta drivers the AD7192,
AD7780 and AD7793, but has been improved for more robustness and flexibility.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/adc/Kconfig
drivers/iio/adc/Makefile
drivers/iio/adc/ad_sigma_delta.c [new file with mode: 0644]
include/linux/iio/adc/ad_sigma_delta.h [new file with mode: 0644]