summaryrefslogtreecommitdiffstats
path: root/drivers/iio/light/adjd_s311.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-09-04 14:38:00 +0200
committerJonathan Cameron <jic23@kernel.org>2012-09-08 11:14:34 +0200
commitce56ade6ae74e604a4b5d6ea5b1d58960fa8e7aa (patch)
tree78d2013d24bb0b1afece98e27c9be2885c706d27 /drivers/iio/light/adjd_s311.c
parentstaging:iio: hid-sensors Use iio_push_to_buffer (diff)
downloadlinux-ce56ade6ae74e604a4b5d6ea5b1d58960fa8e7aa.tar.xz
linux-ce56ade6ae74e604a4b5d6ea5b1d58960fa8e7aa.zip
iio: Drop timestamp parameter from buffer store_to callback
Drop timestamp parameter from buffer store_to callback and subsequently from iio_push_to_buffer. The timestamp parameter is unused and it seems likely that it will stay unused in the future, so it should be safe to remove it. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/light/adjd_s311.c')
-rw-r--r--drivers/iio/light/adjd_s311.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/light/adjd_s311.c b/drivers/iio/light/adjd_s311.c
index 9a99f43094f0..164b62b91a4b 100644
--- a/drivers/iio/light/adjd_s311.c
+++ b/drivers/iio/light/adjd_s311.c
@@ -187,7 +187,7 @@ static irqreturn_t adjd_s311_trigger_handler(int irq, void *p)
if (indio_dev->scan_timestamp)
*(s64 *)((u8 *)data->buffer + ALIGN(len, sizeof(s64)))
= time_ns;
- iio_push_to_buffer(buffer, (u8 *)data->buffer, time_ns);
+ iio_push_to_buffer(buffer, (u8 *)data->buffer);
done:
iio_trigger_notify_done(indio_dev->trig);