]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: wan: framer: constify of_phandle_args in xlate
authorKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sat, 17 Feb 2024 10:03:06 +0000 (11:03 +0100)
committerJakub Kicinski <kuba@kernel.org>
Wed, 21 Feb 2024 02:28:54 +0000 (18:28 -0800)
commit2f3bfa8e30b5b4864a200be0dc2fb55d8e4b35e4
tree9bac9463a7f5e255c990171e63145e5d2a8f1437
parentf4d3e595c0000ce39dec7e4799ea42ce42ab6867
net: wan: framer: constify of_phandle_args in xlate

The xlate callbacks are supposed to translate of_phandle_args to proper
provider without modifying the of_phandle_args.  Make the argument
pointer to const for code safety and readability.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240217100306.86740-1-krzysztof.kozlowski@linaro.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/wan/framer/framer-core.c
include/linux/framer/framer-provider.h