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>
This commit is contained in:

committed by
Grant Likely

parent
4a92a385f8
commit
b8fbdc42c5
@@ -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;
|
||||
|
Reference in New Issue
Block a user