iio: buffer-dmaengine: Support specifying buffer direction
authorPaul Cercueil <paul@crapouillou.net>
Fri, 19 Apr 2024 08:25:37 +0000 (10:25 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 20 Apr 2024 14:41:14 +0000 (15:41 +0100)
commitc1b91566580c245cf1147745d174be5e059ace6b
tree4ad5fc3113e061bfcaac3bbbfdb11406ef8bdd4f
parentfb09febafd160b7aefd9e61f710a0c50f0472403
iio: buffer-dmaengine: Support specifying buffer direction

Update the devm_iio_dmaengine_buffer_setup() function to support
specifying the buffer direction.

Update the iio_dmaengine_buffer_submit() function to handle input
buffers as well as output buffers.

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-4-5ca45b4de294@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/buffer/industrialio-buffer-dmaengine.c
include/linux/iio/buffer-dmaengine.h