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/gyro | |
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/gyro')
-rw-r--r-- | drivers/iio/gyro/hid-sensor-gyro-3d.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/iio/gyro/hid-sensor-gyro-3d.c b/drivers/iio/gyro/hid-sensor-gyro-3d.c index 94a4740135e7..4c56ada51c39 100644 --- a/drivers/iio/gyro/hid-sensor-gyro-3d.c +++ b/drivers/iio/gyro/hid-sensor-gyro-3d.c | |||
@@ -198,7 +198,6 @@ static const struct iio_info gyro_3d_info = { | |||
198 | static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len) | 198 | static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len) |
199 | { | 199 | { |
200 | struct iio_buffer *buffer = indio_dev->buffer; | 200 | struct iio_buffer *buffer = indio_dev->buffer; |
201 | s64 timestamp = iio_get_time_ns(); | ||
202 | int datum_sz; | 201 | int datum_sz; |
203 | 202 | ||
204 | dev_dbg(&indio_dev->dev, "hid_sensor_push_data\n"); | 203 | dev_dbg(&indio_dev->dev, "hid_sensor_push_data\n"); |
@@ -212,7 +211,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len) | |||
212 | datum_sz); | 211 | datum_sz); |
213 | return; | 212 | return; |
214 | } | 213 | } |
215 | iio_push_to_buffer(buffer, (u8 *)data, timestamp); | 214 | iio_push_to_buffer(buffer, (u8 *)data); |
216 | } | 215 | } |
217 | 216 | ||
218 | /* Callback handler to send event after all samples are received and captured */ | 217 | /* Callback handler to send event after all samples are received and captured */ |