Commit 732457dc authored by Linus Walleij's avatar Linus Walleij Committed by Bartosz Golaszewski
Browse files

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: default avatarAlex Elder <elder@riscstar.com>
Tested-by: default avatarYixun Lan <dlan@gentoo.org>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20250225-gpio-ranges-fourcell-v3-1-860382ba4713@linaro.org


Signed-off-by: default avatarBartosz Golaszewski <bartosz.golaszewski@linaro.org>
parent 9778568d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment