Michael Hennerich 558a25f903 iio: dac: ad5593r: Fix i2c read protocol requirements
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: 56ca9db862bf ("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>
2022-09-21 18:42:53 +01:00
..
2022-09-03 13:23:11 -07:00
2022-08-04 12:12:54 -07:00
2022-09-21 15:43:35 +02:00
2022-07-17 17:14:30 -07:00
2022-08-04 19:30:35 -07:00
2022-08-06 16:38:17 -07:00
2022-08-31 09:54:14 -07:00
2022-09-03 13:09:46 -07:00
2022-09-21 16:16:03 +02:00
2022-08-18 17:37:22 +02:00
2022-08-26 11:05:54 -07:00
2022-08-04 19:41:09 -07:00
2022-08-06 10:25:16 -07:00
2022-09-02 15:03:12 -07:00
2022-08-05 14:13:45 -07:00
2022-09-02 10:55:23 -07:00
2022-08-12 09:50:34 -07:00
2022-09-02 16:44:30 -07:00
2022-08-04 12:12:54 -07:00
2022-08-03 17:49:38 +02:00
2022-09-02 10:32:30 -07:00
2022-08-04 19:30:35 -07:00
2022-09-02 10:35:51 -07:00
2022-08-04 12:12:54 -07:00
2022-08-04 12:12:54 -07:00
2022-08-16 11:36:38 -07:00
2022-08-05 10:02:33 -07:00
2022-08-09 00:56:41 +02:00
2022-08-20 11:29:01 -07:00
2022-08-16 11:40:15 -07:00
2022-08-13 13:41:48 -07:00
2022-08-12 09:50:34 -07:00
2022-08-08 15:04:04 -07:00
2022-09-03 13:23:11 -07:00