summary refs log tree commit diff
path: root/fs/buffer.c
diff options
context:
space:
mode:
authorMircea Caprioru <mircea.caprioru@analog.com>2018-12-06 15:53:15 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2018-12-08 15:45:09 +0000
commit0e76df5c978338f3051e5126fc0c4245c57a307a (patch)
tree69ceafcf721a1672a59b9bd31667da1b9501f7a5 /fs/buffer.c
parent12d323cf6dd558b442fa3f03af3c7703617eed81 (diff)
downloadlinux-0e76df5c978338f3051e5126fc0c4245c57a307a.tar.gz
iio: dac: ad5686: fix bit shift read register
This patch solves the register readback issue with the bit shift. When the
dac resolution was lower than the register size (ex. 12 bits out of 16
bits) the readback value was not shifted with the difference in bits and
the value was higher. Also a mask is applied on the read value in order to
get the value relative to the actual bit size.

Fixes: 0357e488b8 ("iio:dac:ad5686: Refactor the driver")
Signed-off-by: Mircea Caprioru <mircea.caprioru@analog.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'fs/buffer.c')
0 files changed, 0 insertions, 0 deletions