aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/light/hid-sensor-als.c
diff options
context:
space:
mode:
authorLars-Peter Clausen <lars@metafoo.de>2012-09-04 13:38:00 +0100
committerJonathan Cameron <jic23@kernel.org>2012-09-08 10:14:34 +0100
commitce56ade6ae74e604a4b5d6ea5b1d58960fa8e7aa (patch)
tree78d2013d24bb0b1afece98e27c9be2885c706d27 /drivers/iio/light/hid-sensor-als.c
parentstaging:iio: hid-sensors Use iio_push_to_buffer (diff)
downloadlinux-dev-ce56ade6ae74e604a4b5d6ea5b1d58960fa8e7aa.tar.xz
linux-dev-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/hid-sensor-als.c')
-rw-r--r--drivers/iio/light/hid-sensor-als.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iio/light/hid-sensor-als.c b/drivers/iio/light/hid-sensor-als.c
index b3c8e91b2c8d..96e3691e42c4 100644
--- a/drivers/iio/light/hid-sensor-als.c
+++ b/drivers/iio/light/hid-sensor-als.c
@@ -177,7 +177,6 @@ static const struct iio_info als_info = {
static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len)
{
struct iio_buffer *buffer = indio_dev->buffer;
- s64 timestamp = iio_get_time_ns();
int datum_sz;
dev_dbg(&indio_dev->dev, "hid_sensor_push_data\n");
@@ -191,7 +190,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len)
datum_sz);
return;
}
- iio_push_to_buffer(buffer, (u8 *)data, timestamp);
+ iio_push_to_buffer(buffer, (u8 *)data);
}
/* Callback handler to send event after all samples are received and captured */