diff options
author | Phil Reid <preid@electromag.com.au> | 2018-06-05 14:15:10 +0800 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2018-06-24 14:23:21 +0100 |
commit | 92397a6c38d139d50fabbe9e2dc09b61d53b2377 (patch) | |
tree | dbc56ee5af2137e448be0692720431048e0fba6c | |
parent | b02ec67a8e38875cdc5f9214be885022f11c0017 (diff) | |
download | op-kernel-dev-92397a6c38d139d50fabbe9e2dc09b61d53b2377.zip op-kernel-dev-92397a6c38d139d50fabbe9e2dc09b61d53b2377.tar.gz |
iio: buffer: fix the function signature to match implementation
linux/iio/buffer-dma.h was not updated to when length was changed to
unsigned int.
Fixes: c043ec1ca5ba ("iio:buffer: make length types match kfifo types")
Signed-off-by: Phil Reid <preid@electromag.com.au>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r-- | include/linux/iio/buffer-dma.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/iio/buffer-dma.h b/include/linux/iio/buffer-dma.h index 767467d..67c7537 100644 --- a/include/linux/iio/buffer-dma.h +++ b/include/linux/iio/buffer-dma.h @@ -141,7 +141,7 @@ int iio_dma_buffer_read(struct iio_buffer *buffer, size_t n, char __user *user_buffer); size_t iio_dma_buffer_data_available(struct iio_buffer *buffer); int iio_dma_buffer_set_bytes_per_datum(struct iio_buffer *buffer, size_t bpd); -int iio_dma_buffer_set_length(struct iio_buffer *buffer, int length); +int iio_dma_buffer_set_length(struct iio_buffer *buffer, unsigned int length); int iio_dma_buffer_request_update(struct iio_buffer *buffer); int iio_dma_buffer_init(struct iio_dma_buffer_queue *queue, |