From: Krzysztof Kozlowski Date: Wed, 28 Jul 2021 14:42:27 +0000 (+0200) Subject: of: unify of_count_phandle_with_args() arguments with !CONFIG_OF X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a065d5615fc83908ef21ed8159ffb63d816ff5de;p=linux.git 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 Reviewed-by: Rob Herring Signed-off-by: Bartosz Golaszewski --- diff --git a/include/linux/of.h b/include/linux/of.h index 9c2e71e202d1c..dfeb065c3fad3 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) {