diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-09-03 20:59:05 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-09-30 09:20:59 +0100 |
commit | 11b147cdec653126b078ff0e8f3f453a8afbd88a (patch) | |
tree | 13631ae1e330790c2d45c700a93ad77438511703 | |
parent | e4ca0e59c39442546866f3dd514a3a5956577daf (diff) | |
download | lwn-11b147cdec653126b078ff0e8f3f453a8afbd88a.tar.gz lwn-11b147cdec653126b078ff0e8f3f453a8afbd88a.zip |
iio: imu: st_lsm6dsx: Use aligned data type for timestamp
Use aligned_s64 for the timestamp field.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20240903180218.3640501-3-andriy.shevchenko@linux.intel.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r-- | drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h b/drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h index a3b93566533b..c225b246c8a5 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]; }; |