Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

of: add missing const for of_parse_phandle_with_args() in !CONFIG_OF

commit 93c667ca2598bd84f1bd3f2fa176af69707699fe
("of: *node argument to of_parse_phandle_with_args should be const")
changed to const for struct device node *np,
but it cares CONFIG_OF case only, !CONFIG_OF case need it too.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Rob Herring <robh@kernel.org>

authored by

Kuninori Morimoto and committed by
Rob Herring
e93aeeae aaaab56d

+1 -1
+1 -1
include/linux/of.h
··· 614 614 return NULL; 615 615 } 616 616 617 - static inline int of_parse_phandle_with_args(struct device_node *np, 617 + static inline int of_parse_phandle_with_args(const struct device_node *np, 618 618 const char *list_name, 619 619 const char *cells_name, 620 620 int index,