From: JM Friedt Date: Fri, 19 Jun 2015 12:48:06 +0000 (+0200) Subject: iio: DAC: ad5624r_spi: fix bit shift of output data value X-Git-Tag: v3.2.71~67 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=834d2db3c439d2ad60bd6625cbe1ae95979d2bff;p=pandora-kernel.git iio: DAC: ad5624r_spi: fix bit shift of output data value commit adfa969850ae93beca57f7527f0e4dc10cbe1309 upstream. 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 Acked-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron [bwh: Backported to 3.2: adjust filename] Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed