diff options
author | Jonathan Cameron <jic23@kernel.org> | 2012-09-06 17:12:53 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-09-07 14:09:20 -0400 |
commit | a0d7bf7dd1b37ccd6804cd62ca037c1efe3b2e27 (patch) | |
tree | 4aa0cca119eda64e5760c683077c03bec9a1aeaf /drivers/iio/light | |
parent | 00176b360ce44bcc5dea2bcd0c8ff5ba9309685f (diff) |
staging:iio: hid-sensors Use iio_push_to_buffer
Consistently use iio_push_to_buffer instead of manually calling the buffers
store_to callback.
These crossed with Lars-Peter's patch set doing every other case.
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Acked-by: srinivas pandruvada <srinivas.pandruvada@intel.com>
Diffstat (limited to 'drivers/iio/light')
-rw-r--r-- | drivers/iio/light/hid-sensor-als.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/light/hid-sensor-als.c b/drivers/iio/light/hid-sensor-als.c index 2cff7d5167b2..b3c8e91b2c8d 100644 --- a/drivers/iio/light/hid-sensor-als.c +++ b/drivers/iio/light/hid-sensor-als.c | |||
@@ -191,7 +191,7 @@ static void hid_sensor_push_data(struct iio_dev *indio_dev, u8 *data, int len) | |||
191 | datum_sz); | 191 | datum_sz); |
192 | return; | 192 | return; |
193 | } | 193 | } |
194 | buffer->access->store_to(buffer, (u8 *)data, timestamp); | 194 | iio_push_to_buffer(buffer, (u8 *)data, timestamp); |
195 | } | 195 | } |
196 | 196 | ||
197 | /* Callback handler to send event after all samples are received and captured */ | 197 | /* Callback handler to send event after all samples are received and captured */ |