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>
This commit is contained in:
Andy Shevchenko
2024-09-03 20:59:05 +03:00
committed by Jonathan Cameron
parent e4ca0e59c3
commit 11b147cdec

View File

@@ -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];
};