diff options
author | Krzysztof Kozlowski <[email protected]> | 2021-07-28 16:42:27 +0200 |
---|---|---|
committer | Bartosz Golaszewski <[email protected]> | 2021-08-05 21:21:43 +0200 |
commit | a065d5615fc83908ef21ed8159ffb63d816ff5de (patch) | |
tree | 19d42cf11707b0ef122261d9bb441b7a5876baf7 | |
parent | f43837f4f63b1a58084d7147b8b34c0f3dd261f6 (diff) |
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 <[email protected]>
Reviewed-by: Rob Herring <[email protected]>
Signed-off-by: Bartosz Golaszewski <[email protected]>
-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) { |