]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iio: buffer: Move from int64_t to s64 for timestamp
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 27 Apr 2026 18:51:47 +0000 (20:51 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sun, 31 May 2026 09:59:32 +0000 (10:59 +0100)
iio_push_to_buffers_with_ts_unaligned() uses int64_t for timestamp.
Move it from int64_t to s64 to make consistent with:
- iio_push_to_buffers_with_ts()
- all current users that supply s64 anyway

This will reduce potential of wrong type being chosen when using
this API.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/industrialio-buffer.c
include/linux/iio/buffer.h

index 252ce4a6f913cdb83846872e1eab93cf1540d58a..9d66510a1d4906d4a01752ab096bc3bee1d43359 100644 (file)
@@ -2444,7 +2444,7 @@ EXPORT_SYMBOL_GPL(iio_push_to_buffers);
 int iio_push_to_buffers_with_ts_unaligned(struct iio_dev *indio_dev,
                                          const void *data,
                                          size_t data_sz,
-                                         int64_t timestamp)
+                                         s64 timestamp)
 {
        struct iio_dev_opaque *iio_dev_opaque = to_iio_dev_opaque(indio_dev);
 
index 8fd0d57d238fc9aacffc9f43866376ec6d2bca31..745c98ef4e04cff3283f71dc85fb62341cc2be83 100644 (file)
@@ -79,7 +79,7 @@ static inline int iio_push_to_buffers_with_ts(struct iio_dev *indio_dev,
 
 int iio_push_to_buffers_with_ts_unaligned(struct iio_dev *indio_dev,
                                          const void *data, size_t data_sz,
-                                         int64_t timestamp);
+                                         s64 timestamp);
 
 bool iio_validate_scan_mask_onehot(struct iio_dev *indio_dev,
                                   const unsigned long *mask);