iio: pressure: zpa2326: Use aligned_s64 for the timestamp
[ Upstream commit 886a446b76afddfad307488e95e87f23a08ffd51 ] On x86_32 s64 fields are only 32-bit aligned. Hence force the alignment of the field and padding in the structure by using aligned_s64 instead. Reviewed-by: David Lechner <dlechner@baylibre.com> Link: https://patch.msgid.link/20250413103443.2420727-19-jic23@kernel.org Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
c5734f9bab
commit
462215a2a3
@@ -582,7 +582,7 @@ static int zpa2326_fill_sample_buffer(struct iio_dev *indio_dev,
|
|||||||
struct {
|
struct {
|
||||||
u32 pressure;
|
u32 pressure;
|
||||||
u16 temperature;
|
u16 temperature;
|
||||||
u64 timestamp;
|
aligned_s64 timestamp;
|
||||||
} sample;
|
} sample;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user