summaryrefslogtreecommitdiff
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>2021-07-28 17:42:27 +0300
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2021-08-05 22:21:43 +0300
commita065d5615fc83908ef21ed8159ffb63d816ff5de (patch)
tree19d42cf11707b0ef122261d9bb441b7a5876baf7 /include/linux/of.h
parentf43837f4f63b1a58084d7147b8b34c0f3dd261f6 (diff)
downloadlinux-a065d5615fc83908ef21ed8159ffb63d816ff5de.tar.xz
of: unify of_count_phandle_with_args() arguments with !CONFIG_OF
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>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 9c2e71e202d1..dfeb065c3fad 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -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)
{