iio: dac: ad5758: Modifications for new revision
authorMircea Caprioru <mircea.caprioru@analog.com>
Tue, 9 Apr 2019 13:35:21 +0000 (16:35 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 22 Apr 2019 10:34:14 +0000 (11:34 +0100)
commitedde945257e28104cf865d7d2b9b239f87d815d4
tree7e4b870304f8b63545635ba68c36402c4ec4cf03
parentb9fedb0a177a3b05f5c5e85b499f0e5c96807036
iio: dac: ad5758: Modifications for new revision

This patch will ensure compatibility with the new revision of the AD5758
dac converter. The modifications consist of removing the fault_prot_switch
function since this option is no longer available, and enabling the
ENABLE_PPC_BUFFERS bit in ADC_CONFIG register before setting the PPC
current mode.

The previous version of the chip was never released to customers
so there is no need to support it going forwards.

Signed-off-by: Mircea Caprioru <mircea.caprioru@analog.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ad5758.c