Skip to content

Commit 16dd49b

Browse files
committed
iio: buffer-dma: sync upstream and add mmap legacy kconfig
Bring the buffer-dma interface in sync (as possible) with upstream. On top of it, the MMAP support is under a new kconfig flag (which for now is on by default) and can be opted out in favor of the new DMABUF interface. Signed-off-by: Nuno Sa <nuno.sa@analog.com>
1 parent 034461a commit 16dd49b

File tree

8 files changed

+259
-48
lines changed

8 files changed

+259
-48
lines changed

drivers/iio/buffer/Kconfig

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ config IIO_BUFFER_DMAENGINE
3030

3131
Should be selected by drivers that want to use this functionality.
3232

33+
config IIO_DMA_BUF_MMAP_LEGACY
34+
bool "Enables I/O DMA buffer legacy MMAP support"
35+
depends on IIO_BUFFER_DMAENGINE
36+
default y
37+
3338
config IIO_BUFFER_HW_CONSUMER
3439
tristate "Industrial I/O HW buffering"
3540
help

0 commit comments

Comments
 (0)