iio: buffer-dmaengine: Enable write support
authorPaul Cercueil <paul@crapouillou.net>
Fri, 19 Apr 2024 08:25:38 +0000 (10:25 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 20 Apr 2024 14:41:32 +0000 (15:41 +0100)
commit3afb27d15f8ddaa5ce5781d18bb249c683d29260
treed7261270d12b2b9ba2423b84134d159167546ff6
parentc1b91566580c245cf1147745d174be5e059ace6b
iio: buffer-dmaengine: Enable write support

Use the iio_dma_buffer_write() and iio_dma_buffer_space_available()
functions provided by the buffer-dma core, to enable write support in
the buffer-dmaengine code.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Signed-off-by: Nuno Sa <nuno.sa@analog.com>
Link: https://lore.kernel.org/r/20240419-iio-backend-axi-dac-v4-5-5ca45b4de294@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/buffer/industrialio-buffer-dmaengine.c