825-v5.15-of-unify-of_count_phandle_with_args-arguments-with-C.patch 993 B

123456789101112131415161718192021222324252627
  1. From a065d5615fc83908ef21ed8159ffb63d816ff5de Mon Sep 17 00:00:00 2001
  2. From: Krzysztof Kozlowski <[email protected]>
  3. Date: Wed, 28 Jul 2021 16:42:27 +0200
  4. Subject: [PATCH] of: unify of_count_phandle_with_args() arguments with
  5. !CONFIG_OF
  6. Unify the declaration of of_count_phandle_with_args() between enabled
  7. and disabled OF by making constifying pointed device_node.
  8. Signed-off-by: Krzysztof Kozlowski <[email protected]>
  9. Reviewed-by: Rob Herring <[email protected]>
  10. Signed-off-by: Bartosz Golaszewski <[email protected]>
  11. ---
  12. include/linux/of.h | 2 +-
  13. 1 file changed, 1 insertion(+), 1 deletion(-)
  14. --- a/include/linux/of.h
  15. +++ b/include/linux/of.h
  16. @@ -889,7 +889,7 @@ static inline int of_parse_phandle_with_
  17. return -ENOSYS;
  18. }
  19. -static inline int of_count_phandle_with_args(struct device_node *np,
  20. +static inline int of_count_phandle_with_args(const struct device_node *np,
  21. const char *list_name,
  22. const char *cells_name)
  23. {