.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright 2013-2015 Analog Devices Inc. |
---|
3 | 4 | * Author: Lars-Peter Clausen <lars@metafoo.de> |
---|
4 | | - * |
---|
5 | | - * Licensed under the GPL-2. |
---|
6 | 5 | */ |
---|
7 | 6 | |
---|
8 | 7 | #include <linux/slab.h> |
---|
.. | .. |
---|
13 | 12 | #include <linux/mutex.h> |
---|
14 | 13 | #include <linux/sched.h> |
---|
15 | 14 | #include <linux/poll.h> |
---|
16 | | -#include <linux/iio/buffer.h> |
---|
17 | 15 | #include <linux/iio/buffer_impl.h> |
---|
18 | 16 | #include <linux/iio/buffer-dma.h> |
---|
19 | 17 | #include <linux/dma-mapping.h> |
---|
.. | .. |
---|
477 | 475 | * @n: Number of bytes to read |
---|
478 | 476 | * @user_buffer: Userspace buffer to copy the data to |
---|
479 | 477 | * |
---|
480 | | - * Should be used as the read_first_n callback for iio_buffer_access_ops |
---|
| 478 | + * Should be used as the read callback for iio_buffer_access_ops |
---|
481 | 479 | * struct for DMA buffers. |
---|
482 | 480 | */ |
---|
483 | 481 | int iio_dma_buffer_read(struct iio_buffer *buffer, size_t n, |
---|