diff options
Diffstat (limited to 'drivers/iio/buffer_cb.c')
-rw-r--r-- | drivers/iio/buffer_cb.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/buffer_cb.c b/drivers/iio/buffer_cb.c index 4d40e24f3721..9201022945e9 100644 --- a/drivers/iio/buffer_cb.c +++ b/drivers/iio/buffer_cb.c | |||
@@ -25,7 +25,7 @@ static struct iio_buffer_access_funcs iio_cb_access = { | |||
25 | .store_to = &iio_buffer_cb_store_to, | 25 | .store_to = &iio_buffer_cb_store_to, |
26 | }; | 26 | }; |
27 | 27 | ||
28 | struct iio_cb_buffer *iio_channel_get_all_cb(const char *name, | 28 | struct iio_cb_buffer *iio_channel_get_all_cb(struct device *dev, |
29 | int (*cb)(u8 *data, | 29 | int (*cb)(u8 *data, |
30 | void *private), | 30 | void *private), |
31 | void *private) | 31 | void *private) |
@@ -46,7 +46,7 @@ struct iio_cb_buffer *iio_channel_get_all_cb(const char *name, | |||
46 | cb_buff->buffer.access = &iio_cb_access; | 46 | cb_buff->buffer.access = &iio_cb_access; |
47 | INIT_LIST_HEAD(&cb_buff->buffer.demux_list); | 47 | INIT_LIST_HEAD(&cb_buff->buffer.demux_list); |
48 | 48 | ||
49 | cb_buff->channels = iio_channel_get_all(name); | 49 | cb_buff->channels = iio_channel_get_all(dev); |
50 | if (IS_ERR(cb_buff->channels)) { | 50 | if (IS_ERR(cb_buff->channels)) { |
51 | ret = PTR_ERR(cb_buff->channels); | 51 | ret = PTR_ERR(cb_buff->channels); |
52 | goto error_free_cb_buff; | 52 | goto error_free_cb_buff; |