[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20251227174355.0677f93f@jic23-huawei>
Date: Sat, 27 Dec 2025 17:43:55 +0000
From: Jonathan Cameron <jic23@...nel.org>
To: Krzysztof Kozlowski <krzysztof.kozlowski@....qualcomm.com>
Cc: David Lechner <dlechner@...libre.com>, Nuno Sá
<nuno.sa@...log.com>, Andy Shevchenko <andy@...nel.org>, Joel Stanley
<joel@....id.au>, Andrew Jeffery <andrew@...econstruct.com.au>, Krzysztof
Kozlowski <krzk@...nel.org>, Alim Akhtar <alim.akhtar@...sung.com>, Heiko
Stuebner <heiko@...ech.de>, Philipp Zabel <p.zabel@...gutronix.de>,
linux-iio@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-aspeed@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
linux-samsung-soc@...r.kernel.org, linux-rockchip@...ts.infradead.org
Subject: Re: [PATCH 1/3] iio: adc: aspeed: Simplify probe() with local 'dev'
and 'np'
On Sun, 21 Dec 2025 15:26:03 +0100
Krzysztof Kozlowski <krzysztof.kozlowski@....qualcomm.com> 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@....qualcomm.com>
All 3 patches applied to the togreg branch of iio.git.
Initially pushed out as testing to let the bots have a play.
Jonathan
Powered by blists - more mailing lists