Skip to content

Commit

Permalink
iio:buffer_cb: Add missing iio_buffer_init()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Lars-Peter Clausen authored and Jonathan Cameron committed Sep 21, 2013
1 parent 0d5b7da commit bda2f8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/iio/buffer_cb.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit bda2f8f

Please sign in to comment.