linux-yocto/drivers/iio/temperature
Jonathan Cameron 35061dc5f6 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>
2025-05-18 08:21:24 +02:00
..
hid-sensor-temperature.c iio: hid-sensors: Update header includes 2021-06-16 14:53:13 +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: Add MAX31865 RTD Support 2021-09-14 12:00:33 +01:00
ltc2983.c iio: temperature: ltc2983: make bulk write buffer DMA-safe 2022-12-31 13:32:40 +01:00
Makefile iio: temperature: Add MAX31865 RTD Support 2021-09-14 12:00:33 +01:00
max31856.c iio: temperature: max31856: Make use of device properties 2022-04-28 19:22:55 +01:00
max31865.c iio: temp: max31865: Fix alignment for DMA safety 2022-06-14 11:53:19 +01:00
maxim_thermocouple.c iio: temp: maxim-thermocouple: Fix potential lack of DMA safe buffer. 2025-05-18 08:21:24 +02:00
mlx90614.c Char/Misc and other driver changes for 6.1-rc1 2022-10-08 08:56:37 -07:00
mlx90632.c Char/Misc and other driver changes for 6.1-rc1 2022-10-08 08:56:37 -07:00
tmp006.c iio:temperature:tmp006: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:46:03 +00:00
tmp007.c iio:temperature:tmp007: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:46:03 +00:00
tmp117.c
tsys01.c iio:common:meas-spec: Move exports into IIO_MEAS_SPEC_SENSORS 2022-02-18 11:42:26 +00:00
tsys02d.c iio:common:meas-spec: Move exports into IIO_MEAS_SPEC_SENSORS 2022-02-18 11:42:26 +00:00