diff options
author | Jonathan Cameron <jic23@kernel.org> | 2012-06-30 15:06:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2012-11-10 05:17:21 -0500 |
commit | 84b36ce5f79c01f792c623f14e92ed86cdccb42f (patch) | |
tree | aa763089df10007bc42aa02b747e652e0b99003e /drivers/staging/iio/accel/lis3l02dq_ring.c | |
parent | 4eb3ccf157639a9d9c7829de94017c46c73d9cc4 (diff) |
staging:iio: Add support for multiple buffers
Route all buffer writes through the demux.
Addition or removal of a buffer results in tear down and
setup of all the buffers for a given device.
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Tested-by: srinivas pandruvada <srinivas.pandruvada@intel.com>
Diffstat (limited to 'drivers/staging/iio/accel/lis3l02dq_ring.c')
-rw-r--r-- | drivers/staging/iio/accel/lis3l02dq_ring.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/iio/accel/lis3l02dq_ring.c b/drivers/staging/iio/accel/lis3l02dq_ring.c index 24635271653..bc38651c315 100644 --- a/drivers/staging/iio/accel/lis3l02dq_ring.c +++ b/drivers/staging/iio/accel/lis3l02dq_ring.c | |||
@@ -154,7 +154,7 @@ static irqreturn_t lis3l02dq_trigger_handler(int irq, void *p) | |||
154 | if (indio_dev->scan_timestamp) | 154 | if (indio_dev->scan_timestamp) |
155 | *(s64 *)((u8 *)data + ALIGN(len, sizeof(s64))) | 155 | *(s64 *)((u8 *)data + ALIGN(len, sizeof(s64))) |
156 | = pf->timestamp; | 156 | = pf->timestamp; |
157 | iio_push_to_buffer(indio_dev->buffer, (u8 *)data); | 157 | iio_push_to_buffers(indio_dev, (u8 *)data); |
158 | 158 | ||
159 | kfree(data); | 159 | kfree(data); |
160 | done: | 160 | done: |