]> git.karo-electronics.de Git - karo-tx-linux.git/commit
iio:ad5064: Structural changes to support LTC2617
authorMarc Andre <marc.andre@netline.ch>
Mon, 8 Feb 2016 17:01:46 +0000 (18:01 +0100)
committerJonathan Cameron <jic23@kernel.org>
Mon, 8 Feb 2016 18:37:24 +0000 (18:37 +0000)
commit78f585feed754c94f890cf94c1eed31ab11830c6
tree8d282f45eff8d24a4d9a9c77e8ea63cebde73ac3
parent0118de7b4c04cba1b275d889ad14a39950f30021
iio:ad5064: Structural changes to support LTC2617

This patch makes minor structural changes to support specifics
for LTC2617 DAC. This DAC requires different handling of the
power down modes. The configuration to actually support the
DAC will be submitted in a secondary patch.

Adjust the DECLARE_AD5064_CHANNELS() macro to accept a new
ext_info parameter. This allows to use different power down
modes per DAC. (e.g. DAC only support 90kohm to ground)

Add the chip_info parameter "powerdown_ltc". This parameter is
used in the ad5064_sync_powerdown_mode() function to handle the
power down command for LTC diffently. For those devices the
power down command must be addressed to the channel.

Signed-off-by: Marc Andre <marc.andre@netline.ch>
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/dac/ad5064.c