From: Andy Shevchenko Date: Tue, 3 Sep 2024 17:59:05 +0000 (+0300) Subject: iio: imu: st_lsm6dsx: Use aligned data type for timestamp X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=11b147cdec653126b078ff0e8f3f453a8afbd88a;p=users%2Fjedix%2Flinux-maple.git iio: imu: st_lsm6dsx: Use aligned data type for timestamp Use aligned_s64 for the timestamp field. Signed-off-by: Andy Shevchenko Link: https://patch.msgid.link/20240903180218.3640501-3-andriy.shevchenko@linux.intel.com Signed-off-by: Jonathan Cameron --- diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h index a3b93566533bc..c225b246c8a55 100644 --- a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h +++ b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h @@ -447,7 +447,7 @@ struct st_lsm6dsx_hw { /* Ensure natural alignment of buffer elements */ struct { __le16 channels[3]; - s64 ts __aligned(8); + aligned_s64 ts; } scan[ST_LSM6DSX_ID_MAX]; };