forked from luck/tmp_suning_uos_patched
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>
This commit is contained in:
parent
0d5b7dae89
commit
bda2f8fca2
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user