summaryrefslogtreecommitdiff
path: root/drivers/iio
diff options
context:
space:
mode:
authorJonathan Cameron <Jonathan.Cameron@huawei.com>2024-12-15 18:29:08 +0000
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-12-28 14:28:16 +0000
commitbeac9d1b74929acf31dfdb9f076ac78e75d59e3b (patch)
tree70b75dd46359acc04a85d1555a92071e470dbc2c /drivers/iio
parentee13a020ac80768b5045685cc1c514fe2d28da17 (diff)
downloadlinux-next-beac9d1b74929acf31dfdb9f076ac78e75d59e3b.tar.gz
linux-next-beac9d1b74929acf31dfdb9f076ac78e75d59e3b.zip
iio: chemical: scd4x: switch timestamp type from int64_t __aligned(8) to aligned_s64
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>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/chemical/scd4x.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/chemical/scd4x.c b/drivers/iio/chemical/scd4x.c
index 52cad54e8572..50e3ac44422b 100644
--- a/drivers/iio/chemical/scd4x.c
+++ b/drivers/iio/chemical/scd4x.c
@@ -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;