linux/drivers/iio/temperature
David Lechner ae5bc07ec9 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: 1f25ca11d8 ("iio: temperature: add support for Maxim thermocouple chips")
Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Link: https://patch.msgid.link/20250721-iio-use-more-iio_declare_buffer_with_ts-3-v2-1-0c68d41ccf6c@baylibre.com
Cc: <Stable@vger.kernel.org>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2025-08-11 21:35:01 +01:00
..
Kconfig iio: temperature: tmp006: add triggered buffer support 2024-09-30 09:21:02 +01:00
Makefile
hid-sensor-temperature.c iio: temperature: Use iio_push_to_buffers_with_ts() to provide length for runtime checks. 2025-05-21 14:20:26 +01:00
iqs620at-temp.c
ltc2983.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
max30208.c
max31856.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
max31865.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
maxim_thermocouple.c iio: temperature: maxim_thermocouple: use DMA-safe buffer for spi_read() 2025-08-11 21:35:01 +01:00
mcp9600.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
mlx90614.c
mlx90632.c
mlx90635.c
tmp006.c iio: temperature: tmp006: use = { } instead of memset() 2025-06-26 19:32:57 +01:00
tmp007.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
tmp117.c
tsys01.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00
tsys02d.c iio: normalize array sentinel style 2025-04-22 19:10:04 +01:00