diff options
author | Alexandru Ardelean <alexandru.ardelean@analog.com> | 2021-02-15 11:40:37 +0100 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2021-03-11 21:47:05 +0100 |
commit | 738f6ba1180046904402ffbe210fbd2fa2c4b050 (patch) | |
tree | 27e250e56c617dd99f4af393a14b698d3a66edb4 /drivers/iio/buffer/industrialio-buffer-dmaengine.c | |
parent | iio: buffer: move __iio_buffer_free_sysfs_and_mask() before alloc (diff) | |
download | linux-738f6ba1180046904402ffbe210fbd2fa2c4b050.tar.xz linux-738f6ba1180046904402ffbe210fbd2fa2c4b050.zip |
iio: dummy: iio_simple_dummy_buffer: use triggered buffer core calls
The iio_simple_dummy_configure_buffer() function is essentially a
re-implementation of the iio_triggered_buffer_setup() function.
This change makes use of the iio_triggered_buffer_setup() function. The
reason is so that we don't have to modify the iio_device_attach_buffer()
function in this driver as well.
One minor drawback is that the pollfunc name may not be 100% identical
with the one in the original code, but since it's an example, it should be
a big problem.
This change does a minor re-arranging of the included iio headers, as a
minor tidy-up.
Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20210215104043.91251-19-alexandru.ardelean@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/buffer/industrialio-buffer-dmaengine.c')
0 files changed, 0 insertions, 0 deletions