diff options
author | 2021-07-28 16:42:27 +0200 | |
---|---|---|
committer | 2021-08-05 21:21:43 +0200 | |
commit | a065d5615fc83908ef21ed8159ffb63d816ff5de (patch) | |
tree | 19d42cf11707b0ef122261d9bb441b7a5876baf7 | |
parent | gpio: gpio-aspeed-sgpio: Return error if ngpios is not multiple of 8. (diff) | |
download | linux-dev-a065d5615fc83908ef21ed8159ffb63d816ff5de.tar.xz linux-dev-a065d5615fc83908ef21ed8159ffb63d816ff5de.zip |
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>
-rw-r--r-- | include/linux/of.h | 2 |
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) { |