diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2012-09-04 11:35:00 (GMT) |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-09-06 21:05:36 (GMT) |
commit | 00176b360ce44bcc5dea2bcd0c8ff5ba9309685f (patch) | |
tree | 9e2f38ae051e9a76476557d2aaf8f7fff86a545d /drivers/staging/iio/imu | |
parent | f38bc926d022ebd67baad6ac7fc22c95fbc6238c (diff) | |
download | linux-fsl-qoriq-00176b360ce44bcc5dea2bcd0c8ff5ba9309685f.tar.xz |
staging:iio: Use iio_push_to_buffer
Consistently use iio_push_to_buffer instead of manually calling the buffers
store_to callback.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/staging/iio/imu')
-rw-r--r-- | drivers/staging/iio/imu/adis16400_ring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/imu/adis16400_ring.c b/drivers/staging/iio/imu/adis16400_ring.c index beec650..6b71788 100644 --- a/drivers/staging/iio/imu/adis16400_ring.c +++ b/drivers/staging/iio/imu/adis16400_ring.c @@ -150,7 +150,7 @@ static irqreturn_t adis16400_trigger_handler(int irq, void *p) /* Guaranteed to be aligned with 8 byte boundary */ if (ring->scan_timestamp) *((s64 *)(data + ((i + 3)/4)*4)) = pf->timestamp; - ring->access->store_to(indio_dev->buffer, (u8 *) data, pf->timestamp); + iio_push_to_buffer(ring, (u8 *) data, pf->timestamp); done: kfree(data); |