diff options
| author | David Lechner <[email protected]> | 2025-07-21 23:04:04 +0000 |
|---|---|---|
| committer | Jonathan Cameron <[email protected]> | 2025-08-11 20:35:01 +0000 |
| commit | ae5bc07ec9f73a41734270ef3f800c5c8a7e0ad3 (patch) | |
| tree | 13343b99ce69dfd89535a2bbc130550786f612b9 /fs/btrfs/dev-replace.c | |
| parent | iio: adc: ad7173: prevent scan if too many setups requested (diff) | |
| download | kernel-ae5bc07ec9f73a41734270ef3f800c5c8a7e0ad3.tar.gz kernel-ae5bc07ec9f73a41734270ef3f800c5c8a7e0ad3.zip | |
iio: temperature: maxim_thermocouple: use DMA-safe buffer for spi_read()
Replace using stack-allocated buffers with a DMA-safe buffer for use
with spi_read(). This allows the driver to be safely used with
DMA-enabled SPI controllers.
The buffer array is also converted to a struct with a union to make the
usage of the memory in the buffer more clear and ensure proper alignment.
Fixes: 1f25ca11d84a ("iio: temperature: add support for Maxim thermocouple chips")
Signed-off-by: David Lechner <[email protected]>
Reviewed-by: Nuno Sá <[email protected]>
Link: https://patch.msgid.link/20250721-iio-use-more-iio_declare_buffer_with_ts-3-v2-1-0c68d41ccf6c@baylibre.com
Cc: <[email protected]>
Signed-off-by: Jonathan Cameron <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.c')
0 files changed, 0 insertions, 0 deletions
