]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: adc: aspeed: Simplify probe() with local 'dev' and 'np'
authorKrzysztof Kozlowski <krzysztof.kozlowski@oss.qualcomm.com>
Sun, 21 Dec 2025 14:26:03 +0000 (15:26 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Wed, 31 Dec 2025 17:59:26 +0000 (17:59 +0000)
commit48de61f6c135ec03d9a1d644411ea501f7d49dff
tree1ea8dd82a952301b7e5041d2355a1972f97c4e15
parentda1d3596b1e456b5d5d5f719bbf5ce562f4fe22d
iio: adc: aspeed: Simplify probe() with local 'dev' and 'np'

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@oss.qualcomm.com>
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/aspeed_adc.c