]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
iio: accel: adxl355: Make timestamp 64-bit aligned using aligned_s64
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 13 Apr 2025 10:34:27 +0000 (11:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 18 May 2025 06:21:24 +0000 (08:21 +0200)
commitb6c984f4eb91cc6fca7b314d33687d8d2ecffb1b
treebc45eea715e4a96586e4aa80a06ff137bb797161
parent8f0064eb224efbe28a0513e18b380b21e1381cf5
iio: accel: adxl355: Make timestamp 64-bit aligned using aligned_s64

[ Upstream commit 1bb942287e05dc4c304a003ea85e6dd9a5e7db39 ]

The IIO ABI requires 64-bit aligned timestamps. In this case insufficient
padding would have been added on architectures where an s64 is only 32-bit
aligned.  Use aligned_s64 to enforce the correct alignment.

Fixes: 327a0eaf19d5 ("iio: accel: adxl355: Add triggered buffer support")
Reported-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Nuno Sá <nuno.sa@analog.com>
Reviewed-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20250413103443.2420727-5-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/iio/accel/adxl355_core.c