• Lars-Peter Clausen's avatar
    iio: ad5064: Fix ad5629/ad5669 shift · 5dcbe97b
    Lars-Peter Clausen authored
    The ad5629/ad5669 are the I2C variant of the ad5628/ad5668, which has a SPI
    interface. They are mostly identical with the exception that the shift
    factor is different. Currently the driver does not take care of this
    difference which leads to incorrect DAC output values.
    
    Fix this by introducing a custom channel spec for the ad5629/ad5669 with
    the correct shift factor.
    
    Fixes: commit 6a17a076 ("iio:dac:ad5064: Add support for the ad5629r and ad5669r")
    Signed-off-by: default avatarLars-Peter Clausen <lars@metafoo.de>
    Cc: <Stable@vger.kernel.org>
    Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
    5dcbe97b
ad5064.c 16.7 KB