linux/drivers/iio/temperature
Jonathan Cameron 245e319019 iio: temp: maxim-thermocouple: Fix potential lack of DMA safe buffer.
[ Upstream commit f79aeb6c63 ]

The trick of using __aligned(IIO_DMA_MINALIGN) ensures that there is
no overlap between buffers used for DMA and those used for driver
state storage that are before the marking. It doesn't ensure
anything above state variables found after the marking. Hence
move this particular bit of state earlier in the structure.

Fixes: 10897f3430 ("iio: temp: maxim_thermocouple: Fix alignment for DMA safety")
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250413103443.2420727-14-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2025-05-18 08:24:56 +02:00
..
hid-sensor-temperature.c iio: temperature: hid-sensor: Convert to platform remove callback returning void 2023-09-23 15:06:56 +01:00
iqs620at-temp.c iio: temperature: iqs620at-temp: Add support for V3 silicon 2022-02-14 13:07:33 +00:00
Kconfig iio: temperature: mlx90635 MLX90635 IR Temperature sensor 2023-12-11 19:16:34 +00:00
ltc2983.c move asm/unaligned.h to linux/unaligned.h 2024-10-02 17:23:23 -04:00
Makefile iio: temperature: mlx90635 MLX90635 IR Temperature sensor 2023-12-11 19:16:34 +00:00
max30208.c iio: temperature: max30208: Remove an unused field in struct max30208_data 2024-05-27 09:48:56 +01:00
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: temp: maxim-thermocouple: Fix potential lack of DMA safe buffer. 2025-05-18 08:24:56 +02:00
mcp9600.c iio: temperature: mcp9600: add threshold events support 2024-06-13 19:19:25 +01:00
mlx90614.c iio: mlx90614: Use i2c_get_match_data() 2023-09-11 20:12:42 +01:00
mlx90632.c iio: temperature: mlx90632: make use of regmap_clear_bits() 2024-06-25 21:04:48 +01:00
mlx90635.c iio: temperature: mlx90635: Fix ERR_PTR dereference in mlx90635_probe() 2024-05-27 09:49:20 +01:00
tmp006.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
tmp007.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
tmp117.c iio: temperature: tmp117: add support for vcc-supply 2024-02-28 19:26:35 +00:00
tsys01.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00
tsys02d.c iio: Drop explicit initialization of struct i2c_device_id::driver_data to 0 2024-05-27 09:48:57 +01:00