linux/drivers/iio/dac
Michael Hennerich ef4018707d iio: dac: ad5593r: Fix i2c read protocol requirements
commit 558a25f903 upstream.

For reliable operation across the full range of supported
interface rates, the AD5593R needs a STOP condition between
address write, and data read (like show in the datasheet Figure 40)
so in turn i2c_smbus_read_word_swapped cannot be used.

While at it, a simple helper was added to make the code simpler.

Fixes: 56ca9db862 ("iio: dac: Add support for the AD5592R/AD5593R ADCs/DACs")
Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Nuno Sá <nuno.sa@analog.com>
Cc: <Stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20220913073413.140475-2-nuno.sa@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-10-26 12:34:19 +02:00
..
Kconfig iio: dac: ad5686: Add support for AD5673R/AD5677R 2021-03-11 20:47:10 +00:00
Makefile
ad5064.c
ad5360.c
ad5380.c
ad5421.c iio: dac: ad5421: Fix kerneldoc attribute formatting for 'lock' 2020-07-20 09:02:54 +01:00
ad5446.c
ad5449.c
ad5504.c
ad5592r-base.c
ad5592r-base.h
ad5592r.c
ad5593r.c
ad5624r.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 177 2019-05-30 11:29:19 -07:00
ad5624r_spi.c
ad5686-spi.c
ad5686.c
ad5686.h
ad5696-i2c.c
ad5755.c
ad5758.c
ad5761.c iio: dac: ad5761: Fix kerneldoc attribute formatting for 'lock' 2020-07-20 09:03:04 +01:00
ad5764.c
ad5766.c
ad5770r.c
ad5791.c
ad7303.c
ad8801.c
cio-dac.c
dpot-dac.c
ds4424.c
lpc18xx_dac.c
ltc1660.c
ltc2632.c
m62332.c
max517.c
max5821.c
mcp4725.c iio: dac: Convert powerdown read callbacks to sysfs_emit() 2021-03-29 11:12:30 +01:00
mcp4922.c
stm32-dac-core.c
stm32-dac-core.h
stm32-dac.c
ti-dac082s085.c
ti-dac5571.c
ti-dac7311.c
ti-dac7612.c
vf610_dac.c