]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: ad5064: Fix ad5629/ad5669 shift
authorLars-Peter Clausen <lars@metafoo.de>
Tue, 13 Oct 2015 16:15:38 +0000 (18:15 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Feb 2016 19:58:53 +0000 (11:58 -0800)
commit6c50c15f47fca71823119dd5d2dc428c5fcd363c
treebefb9a2790be5758bad48202aed70885047280b9
parent7d5470a98963a7f32187f0bcfe42c0a740802a04
iio: ad5064: Fix ad5629/ad5669 shift

commit 5dcbe97bedd6ba4b0f574a96cc2e293d26f3d857 upstream.

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 6a17a0768f77 ("iio:dac:ad5064: Add support for the ad5629r and ad5669r")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/iio/dac/ad5064.c