Re: [PATCH v2] iio: adc: ade9000: fix wrong return type in streaming push
From: Andy Shevchenko
Date: Tue Feb 24 2026 - 09:49:01 EST
On Tue, Feb 24, 2026 at 05:23:55PM +0400, Giorgi Tchankvetadze wrote:
> The else branch of ade9000_iio_push_streaming() incorrectly returns
> IRQ_HANDLED on regmap_write failure. This function returns int (0 on
> success, negative errno on failure), so IRQ_HANDLED (1) would be
> misinterpreted as a non-error by callers.
>
> Return ret instead, consistent with every other error path in the
> function.
Again, do NOT start a _new_ version in the _previous_ version email thread.
--
With Best Regards,
Andy Shevchenko