]> git.baikalelectronics.ru Git - kernel.git/commit
of: add 'const' for of_parse_phandle parameter *np
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>
Thu, 22 Nov 2012 11:16:43 +0000 (12:16 +0100)
committerGrant Likely <grant.likely@secretlab.ca>
Thu, 29 Nov 2012 17:27:19 +0000 (17:27 +0000)
commit8f72566190ac2294a0808eea743155558b510b0a
tree93e441ba5066c1c4593a127d39625122099f242a
parent40e33d6135dcafacaf383c5878fbae3ca2dbd08b
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>
drivers/of/base.c
include/linux/of.h