linux/drivers/iio/dac
Mircea Caprioru 0e76df5c97 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>
2018-12-08 15:45:09 +00:00
..
Kconfig iio:dac:ti-dac7311 Add driver for Texas Instrument DAC7311 2018-11-11 15:29:44 +00:00
Makefile iio:dac:ti-dac7311 Add driver for Texas Instrument DAC7311 2018-11-11 15:29:44 +00:00
ad5064.c iio: ad5064: Fix regulator handling 2018-09-29 13:28:47 +01:00
ad5360.c
ad5380.c
ad5421.c
ad5446.c
ad5449.c
ad5504.c
ad5592r-base.c
ad5592r-base.h
ad5592r.c
ad5593r.c
ad5624r.h
ad5624r_spi.c
ad5686-spi.c iio:dac:ad5686: Add AD5310R support 2018-12-08 15:35:55 +00:00
ad5686.c iio: dac: ad5686: fix bit shift read register 2018-12-08 15:45:09 +00:00
ad5686.h iio:dac:ad5686: Add AD5310R support 2018-12-08 15:35:55 +00:00
ad5696-i2c.c
ad5755.c
ad5758.c iio: dac: ad5758: Add support for hard reset 2018-09-02 19:01:30 +01:00
ad5761.c
ad5764.c
ad5791.c
ad7303.c
ad8801.c
cio-dac.c
dpot-dac.c iio: dpot-dac: mark expected switch fall-through with text GCC expects. 2018-10-14 18:01:00 +01:00
ds4424.c
lpc18xx_dac.c
ltc1660.c
ltc2632.c
m62332.c
max517.c
max5821.c
mcp4725.c
mcp4922.c iio: dac: mcp4922: fix error handling in mcp4922_write_raw 2018-08-25 09:47:36 +01:00
stm32-dac-core.c
stm32-dac-core.h
stm32-dac.c
ti-dac082s085.c
ti-dac5571.c iio: dac: ti-dac5571: provide of_match_table to driver 2018-08-25 09:58:52 +01:00
ti-dac7311.c iio:dac:ti-dac7311 Add driver for Texas Instrument DAC7311 2018-11-11 15:29:44 +00:00
vf610_dac.c