]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
iio: imu: st_lsm6dsx: Use aligned data type for timestamp
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 3 Sep 2024 17:59:05 +0000 (20:59 +0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 30 Sep 2024 08:20:59 +0000 (09:20 +0100)
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>
drivers/iio/imu/st_lsm6dsx/st_lsm6dsx.h

index a3b93566533bc06106be437d416249cb5aa326b2..c225b246c8a552ab4bd4285b3140f06155ba3fb5 100644 (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];
 };