]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
iio: chemical: scd4x: switch timestamp type from int64_t __aligned(8) to aligned_s64
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Sun, 15 Dec 2024 18:29:08 +0000 (18:29 +0000)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 28 Dec 2024 14:28:16 +0000 (14:28 +0000)
The vast majority of IIO drivers use aligned_s64 for the type of the
timestamp field.  It is not a bug to use int64_t and until this series
iio_push_to_buffers_with_timestamp() took and int64_t timestamp, it
is inconsistent.  This change is to remove that inconsistency and
ensure there is one obvious choice for future drivers.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://patch.msgid.link/20241215182912.481706-18-jic23@kernel.org
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/chemical/scd4x.c

index 52cad54e85724fb9c64d05eb1c1856d3f50c0732..50e3ac44422bdff129eacf0eaf4d37058fe7bd85 100644 (file)
@@ -665,7 +665,7 @@ static irqreturn_t scd4x_trigger_handler(int irq, void *p)
        struct scd4x_state *state = iio_priv(indio_dev);
        struct {
                uint16_t data[3];
-               int64_t ts __aligned(8);
+               aligned_s64 ts;
        } scan;
        int ret;