Re: [PATCH 3/6] iio: buffer-dma: Turn iio_dma_buffer_init() void

Nuno Sá
2025-12-19T15:03:18Z

On Wed, 2025-12-03 at 18:34 +0200, Andy Shevchenko wrote:
> On Wed, Dec 03, 2025 at 03:11:38PM +0000, Nuno Sá via B4 Relay wrote:
>
> > iio_dma_buffer_init() always return 0. Therefore there's no point in
> > returning int.
>
> > While at it, fix a mismatch between the function declaration and definition
> > regarding the struct device (dma_dev != dev).
>
> So, all others use simple dev?

Totally forgot about this. What do you mean by the above? If other functions in the
header use just dev? If so, the one I changed is the only one that uses struct device
(in that header). It is also consistent with what we have for the devm_iio_dmaengine_*
APIs.

- Nuno Sá