diff options
author | Steffen Trumtrar <s.trumtrar@pengutronix.de> | 2012-11-22 12:16:43 +0100 |
---|---|---|
committer | Grant Likely <grant.likely@secretlab.ca> | 2012-11-29 17:27:19 +0000 |
commit | b8fbdc42c5c5df8ab1f358fe90e3a8a1bdc9ae48 (patch) | |
tree | 93e441ba5066c1c4593a127d39625122099f242a /drivers/of | |
parent | 4a92a385f867b26297b736e9b9cc42bd6dbf0f2b (diff) | |
download | op-kernel-dev-b8fbdc42c5c5df8ab1f358fe90e3a8a1bdc9ae48.zip op-kernel-dev-b8fbdc42c5c5df8ab1f358fe90e3a8a1bdc9ae48.tar.gz |
of: add 'const' for of_parse_phandle parameter *np
The existing function does not change the passed device_node pointer. It is
only handed to of_get_property which itself takes a const struct device_node.
of_parse_phandle() can therefore take a const pointer as well.
Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
[grant.likely: drop extraneous whitespace change]
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Diffstat (limited to 'drivers/of')
-rw-r--r-- | drivers/of/base.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c index 0ceb26a..c372411 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c @@ -978,8 +978,8 @@ EXPORT_SYMBOL_GPL(of_property_count_strings); * Returns the device_node pointer with refcount incremented. Use * of_node_put() on it when done. */ -struct device_node * -of_parse_phandle(struct device_node *np, const char *phandle_name, int index) +struct device_node *of_parse_phandle(const struct device_node *np, + const char *phandle_name, int index) { const __be32 *phandle; int size; |