diff options
| author | 2026-03-14 18:13:32 -0500 | |
|---|---|---|
| committer | 2026-03-21 20:45:18 +0000 | |
| commit | 768461517a28d80fe81ea4d5d03a90cd184ea6ad (patch) | |
| tree | f0197793cf8fe9b7a4c139eb4264bab608f19dd6 /include/linux/bcma/ssh:/git@git.zx2c4.com/git: | |
| parent | iio: adc: ti-adc161s626: fix buffer read on big-endian (diff) | |
iio: adc: ti-adc161s626: use DMA-safe memory for spi_read()
Add a DMA-safe buffer and use it for spi_read() instead of a stack
memory. All SPI buffers must be DMA-safe.
Since we only need up to 3 bytes, we just use a u8[] instead of __be16
and __be32 and change the conversion functions appropriately.
Fixes: 4d671b71beef ("iio: adc: ti-adc161s626: add support for TI 1-channel differential ADCs")
Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@intel.com>
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'include/linux/bcma/ssh:/git@git.zx2c4.com/git:')
0 files changed, 0 insertions, 0 deletions
