iio: ad_sigma_delta: Allow to provide custom data register address
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 13 Nov 2018 11:20:24 +0000 (13:20 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 17 Nov 2018 16:30:00 +0000 (16:30 +0000)
commitf0aef2d018643187101199d8af1dd5ea3a43a3b7
tree0d56666747d53ff4f7418517451801ed41338921
parentc24a4173f6bbea49b09ae2c137db23035d3a7932
iio: ad_sigma_delta: Allow to provide custom data register address

Some newer devices from the Sigma-Delta ADC family do have their data
register at a different address than the current default address. Add a
parameter to the ad_sigma_delta_info struct which allows to override the
default address.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Stefan Popa <stefan.popa@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ad_sigma_delta.c
include/linux/iio/adc/ad_sigma_delta.h