of: unify of_count_phandle_with_args() arguments with !CONFIG_OF
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Wed, 28 Jul 2021 14:42:27 +0000 (16:42 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 5 Aug 2021 19:21:43 +0000 (21:21 +0200)
Unify the declaration of of_count_phandle_with_args() between enabled
and disabled OF by making constifying pointed device_node.

Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Reviewed-by: Rob Herring <robh@kernel.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
include/linux/of.h

index 9c2e71e..dfeb065 100644 (file)
@@ -896,7 +896,7 @@ static inline int of_parse_phandle_with_fixed_args(const struct device_node *np,
        return -ENOSYS;
 }
 
-static inline int of_count_phandle_with_args(struct device_node *np,
+static inline int of_count_phandle_with_args(const struct device_node *np,
                                             const char *list_name,
                                             const char *cells_name)
 {