[PATCH 0/6] iio: buffer-dma: Minor cleanups and improvements

Nuno Sá via B4 Relay
2025-12-03T15:10:57Z

Small series with some minor improvements for IIO DMA buffers:
* Use lockdep instead of WARN() + mutex API;
* Use cleanup.h;
* Turn iio_dma_buffer_init() void;
* And I could not resist in cleaning up coding style.

Also note that in some of the coding style cleanups I deliberately went
above the 80 col limit as I think it otherwise hurts readability. If not
the case for everyone, I can change it.

---
Nuno Sá (6):
iio: buffer-dma: use lockdep instead of WARN()
iio: buffer-dma: Use the cleanup.h API
iio: buffer-dma: Turn iio_dma_buffer_init() void
iio: buffer-dma: Fix coding style complains
iio: buffer-dmaengine: Use the cleanup.h API
iio: buffer-dmaengine: Fix coding style complains

drivers/iio/buffer/industrialio-buffer-dma.c | 186 +++++++++------------
drivers/iio/buffer/industrialio-buffer-dmaengine.c | 22 +--
include/linux/iio/buffer-dma.h | 20 ++-
3 files changed, 96 insertions(+), 132 deletions(-)
---
base-commit: c5411c8b9ed1caf53604bb1a5be3f487988efc98
change-id: 20251104-iio-dmabuf-improvs-03d942284b86
--

Thanks!
- Nuno Sá