mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-10 07:59:42 -04:00
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:
committed by
Jonathan Cameron
parent
e4ca0e59c3
commit
11b147cdec
@@ -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];
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user