diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-09-18 20:02:00 (GMT) |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-09-21 11:52:50 (GMT) |
commit | bda2f8fca20b564ac8edb2b9c080d942c2144359 (patch) | |
tree | d370cb25197b774f0367ec727c8ebb45d8ecb01a /drivers/iio | |
parent | 0d5b7dae897b61a2372916b1c93f6cee6b8049b1 (diff) | |
download | linux-fsl-qoriq-bda2f8fca20b564ac8edb2b9c080d942c2144359.tar.xz |
iio:buffer_cb: Add missing iio_buffer_init()
Make sure to properly initialize the IIO buffer data structure.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio')
-rw-r--r-- | drivers/iio/buffer_cb.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iio/buffer_cb.c b/drivers/iio/buffer_cb.c index 9d19ba7..415f3c6 100644 --- a/drivers/iio/buffer_cb.c +++ b/drivers/iio/buffer_cb.c @@ -41,6 +41,8 @@ struct iio_cb_buffer *iio_channel_get_all_cb(struct device *dev, goto error_ret; } + iio_buffer_init(&cb_buff->buffer); + cb_buff->private = private; cb_buff->cb = cb; cb_buff->buffer.access = &iio_cb_access; |