]> git.baikalelectronics.ru Git - kernel.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)
committerJonathan Cameron <jic23@kernel.org>
Sun, 25 Oct 2015 12:30:42 +0000 (12:30 +0000)
commitfdc01e870134570fb6ce26c0939db2016867dc24
tree7aa8d91b321d07d8b2a229beb2bb458109102e22
parent8faa7d16a675d82208945b5af84a2b4eba8c2d7e
iio: ad5064: Fix ad5629/ad5669 shift

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 cdf2dfd72b71 ("iio:dac:ad5064: Add support for the ad5629r and ad5669r")
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/dac/ad5064.c