diff options
author | Gregor Boirie <gregor.boirie@parrot.com> | 2016-03-09 21:05:49 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-06-30 21:41:38 +0300 |
commit | bc2b7dab629a51e8beb5fda4222c62a23b729f26 (patch) | |
tree | 302108fe801299d98882e8d506b4415746408374 /drivers/iio/light/apds9300.c | |
parent | eaaa7ec71bff4cb34d9025ed89068d4b3cac3df0 (diff) | |
download | linux-bc2b7dab629a51e8beb5fda4222c62a23b729f26.tar.xz |
iio:core: timestamping clock selection support
Adds a new per-device sysfs attribute "current_timestamp_clock" to allow
userspace to select a particular POSIX clock for buffered samples and
events timestamping.
Following clocks, as listed in clock_gettime(2), are supported:
CLOCK_REALTIME, CLOCK_MONOTONIC, CLOCK_MONOTONIC_RAW,
CLOCK_REALTIME_COARSE, CLOCK_MONOTONIC_COARSE, CLOCK_BOOTTIME and
CLOCK_TAI.
Signed-off-by: Gregor Boirie <gregor.boirie@parrot.com>
Acked-by: Sanchayan Maity <maitysanchayan@gmail.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/light/apds9300.c')
-rw-r--r-- | drivers/iio/light/apds9300.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/light/apds9300.c b/drivers/iio/light/apds9300.c index e1b9fa5a7e91..649b26f67813 100644 --- a/drivers/iio/light/apds9300.c +++ b/drivers/iio/light/apds9300.c @@ -396,7 +396,7 @@ static irqreturn_t apds9300_interrupt_handler(int irq, void *private) IIO_UNMOD_EVENT_CODE(IIO_INTENSITY, 0, IIO_EV_TYPE_THRESH, IIO_EV_DIR_EITHER), - iio_get_time_ns()); + iio_get_time_ns(dev_info)); apds9300_clear_intr(data); |