Re: [PATCH 1/3] iio: adc: aspeed: Simplify probe() with local 'dev' and 'np'
From: Jonathan Cameron
Date: Sat Dec 27 2025 - 12:44:38 EST
On Sun, 21 Dec 2025 15:26:03 +0100
Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx> wrote:
> Simplify the probe function by using local 'dev' and 'np' variables
> instead of full pointer dereferences. This makes several lines shorter,
> which allows to avoid wrapping making code more readable. While
> touching the return line, simplify by avoiding unnecessary 'ret'
> assignment.
>
> Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@xxxxxxxxxxxxxxxx>
All 3 patches applied to the togreg branch of iio.git.
Initially pushed out as testing to let the bots have a play.
Jonathan