diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-09-04 08:38:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-09-08 05:14:34 -0400 |
commit | ce56ade6ae74e604a4b5d6ea5b1d58960fa8e7aa (patch) | |
tree | 78d2013d24bb0b1afece98e27c9be2885c706d27 /drivers/iio/light | |
parent | a0d7bf7dd1b37ccd6804cd62ca037c1efe3b2e27 (diff) |
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')
-rw-r--r-- | drivers/iio/light/adjd_s311.c | 2 | ||||
-rw-r--r-- | drivers/iio/light/hid-sensor-als.c | 3 |
2 files changed, 2 insertions, 3 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) | |||
187 | if (indio_dev->scan_timestamp) | 187 | if (indio_dev->scan_timestamp) |
188 | *(s64 *)((u8 *)data->buffer + ALIGN(len, sizeof(s64))) | 188 | *(s64 *)((u8 *)data->buffer + ALIGN(len, sizeof(s64))) |
189 | = time_ns; | 189 | = time_ns; |
190 | iio_push_to_buffer(buffer, (u8 *)data->buffer, time_ns); | 190 | iio_push_to_buffer(buffer, (u8 *)data->buffer); |
191 | 191 | ||
192 | done: | 192 | done: |
193 | iio_trigger_notify_done(indio_dev->trig); | 193 | iio_trigger_notify_done(indio_dev->trig); |
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 = { | |||
177 | static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len) | 177 | static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len) |
178 | { | 178 | { |
179 | struct iio_buffer *buffer = indio_dev->buffer; | 179 | struct iio_buffer *buffer = indio_dev->buffer; |
180 | s64 timestamp = iio_get_time_ns(); | ||
181 | int datum_sz; | 180 | int datum_sz; |
182 | 181 | ||
183 | dev_dbg(&indio_dev->dev, "hid_sensor_push_data\n"); | 182 | 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) | |||
191 | datum_sz); | 190 | datum_sz); |
192 | return; | 191 | return; |
193 | } | 192 | } |
194 | iio_push_to_buffer(buffer, (u8 *)data, timestamp); | 193 | iio_push_to_buffer(buffer, (u8 *)data); |
195 | } | 194 | } |
196 | 195 | ||
197 | /* Callback handler to send event after all samples are received and captured */ | 196 | /* Callback handler to send event after all samples are received and captured */ |