]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpiolib: of: Use local variables
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 25 Feb 2025 19:40:33 +0000 (20:40 +0100)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Tue, 4 Mar 2025 10:29:04 +0000 (11:29 +0100)
commit732457dc46d62f1df4b2b48c6dbf22b4332da14b
tree536494e7288a35e5144ef5166e2ec6ba13f61ebc
parent9778568dede2166c7bd124d473f9ec365f782935
gpiolib: of: Use local variables

Instead of modifying the contents of the array of values read
in from a phandle, use local variables to store the values.
This makes the code easier to read and the array immutable.

Reviewed-by: Alex Elder <elder@riscstar.com>
Tested-by: Yixun Lan <dlan@gentoo.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250225-gpio-ranges-fourcell-v3-1-860382ba4713@linaro.org
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
drivers/gpio/gpiolib-of.c