aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/rust/kernel/ssh:/git@git.zx2c4.com
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2026-03-14 18:13:32 -0500
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2026-03-21 20:45:18 +0000
commit768461517a28d80fe81ea4d5d03a90cd184ea6ad (patch)
treef0197793cf8fe9b7a4c139eb4264bab608f19dd6 /rust/kernel/ssh:/git@git.zx2c4.com
parentiio: 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 'rust/kernel/ssh:/git@git.zx2c4.com')
0 files changed, 0 insertions, 0 deletions