iio: imu: adis16475: Add buffer padding after temp channel
authorRamona Gradinariu <ramona.gradinariu@analog.com>
Tue, 26 Sep 2023 08:57:21 +0000 (11:57 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Thu, 5 Oct 2023 13:44:05 +0000 (14:44 +0100)
commitd2d1ecc67c48caf479319c4e1ab3d7896f826429
tree00f81f799588799b2c2048ff33e3bebe42b80860
parent500d7640f63d557c397f74b7d5bf8c81377b50b3
iio: imu: adis16475: Add buffer padding after temp channel

The temperature channel has 16-bit storage size. We need to perform
the padding to have the buffer elements naturally aligned in case
the temperature channel is enabled and there are any 32-bit storage
size channels enabled which have a scan index higher than the
temperature channel scan index.

Fixes: 8f6bc87d67c0 ("iio: imu: adis16475.c: Add delta angle and delta velocity channels")
Signed-off-by: Ramona Gradinariu <ramona.gradinariu@analog.com>
Reviewed-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20230926085721.645687-2-ramona.gradinariu@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/imu/adis16475.c