summaryrefslogtreecommitdiff
path: root/drivers/iio/common
diff options
context:
space:
mode:
authorJM Friedt <jmfriedt@femto-st.fr>2015-06-19 15:48:06 +0300
committerSasha Levin <sasha.levin@oracle.com>2015-08-04 21:16:19 +0300
commitb217d7a8e1fcf13a010933d8b7ce34f0d197278c (patch)
tree0a4543a191fbe42de2a11a9932a6f0711a1ed1bc /drivers/iio/common
parent908e65906a2e1f938f0972bbf7b058c6dd945628 (diff)
downloadlinux-b217d7a8e1fcf13a010933d8b7ce34f0d197278c.tar.xz
iio: DAC: ad5624r_spi: fix bit shift of output data value
[ Upstream commit 09f4dcc9443c4731b6669066bd1bc4312ef17bcc ] The value sent on the SPI bus is shifted by an erroneous number of bits. The shift value was already computed in the iio_chan_spec structure and hence subtracting this argument to 16 yields an erroneous data position in the SPI stream. Signed-off-by: JM Friedt <jmfriedt@femto-st.fr> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Cc: <Stable@vger.kernel.org> Signed-off-by: Jonathan Cameron <jic23@kernel.org> Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
Diffstat (limited to 'drivers/iio/common')
0 files changed, 0 insertions, 0 deletions