Thread (5 messages) 5 messages, 3 authors, 2025-12-27

Re: [PATCH 1/3] iio: adc: aspeed: Simplify probe() with local 'dev' and 'np'

From: Jonathan Cameron <jic23@kernel.org>
Date: 2025-12-27 17:44:06
Also in: linux-aspeed, linux-iio, linux-rockchip, linux-samsung-soc, lkml

On Sun, 21 Dec 2025 15:26:03 +0100
Krzysztof Kozlowski [off-list ref] 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 <redacted>
All 3 patches applied to the togreg branch of iio.git.
Initially pushed out as testing to let the bots have a play.

Jonathan
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help