iio: dac: dac5571: Support powerdown for multi-channel
authorVincent Whitchurch <vincent.whitchurch@axis.com>
Tue, 4 Aug 2020 09:31:38 +0000 (11:31 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 3 Sep 2020 18:40:44 +0000 (19:40 +0100)
commit5dfb88af3d5204e581985056ccfb601d47252996
treeea3d52bc8a645f6ec537555c01841aae00d2b6ed
parentabfa391721ce8a4ea59c1bc15968a8b2a9f891cb
iio: dac: dac5571: Support powerdown for multi-channel

The driver currently only allows channel 0 to be powered down but the
multi-channel variants of the hardware allow each channel to be powered
down separately and with separate power down modes.  Add support for
this.

Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com>
Acked-by: Sean Nyekjaer <sean@geanix.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ti-dac5571.c