* [PATCH] of: add missing const for of_parse_phandle_with_args() in !CONFIG_OF
[not found] ` <201604141448.2STegOrD%fengguang.wu@intel.com>
@ 2016-04-14 7:07 ` Kuninori Morimoto
2016-05-10 2:53 ` [PATCH][RESEND] " Kuninori Morimoto
1 sibling, 0 replies; 2+ messages in thread
From: Kuninori Morimoto @ 2016-04-14 7:07 UTC (permalink / raw)
To: Rob Herring, Frank Rowand, Grant Likely, devicetree,
linux-kernel, Guennadi Liakhovetski
Cc: kbuild-all, Mark Brown, Laurent, Lars-Peter Clausen, Jose Abreu,
Linux-DT, Linux-ALSA, Liam Girdwood, Linux-Renesas, Simon
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
commit 93c667ca2598bd84f1bd3f2fa176af69707699fe
("of: *node argument to of_parse_phandle_with_args should be const")
changed struct device node *np as "const".
but it cares CONFIG_OF case only, !CONFIG_OF case need it too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
include/linux/of.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/of.h b/include/linux/of.h
index 7fcb681..4f2ce1b 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -585,7 +585,7 @@ static inline struct device_node *of_parse_phandle(const struct device_node *np,
return NULL;
}
-static inline int of_parse_phandle_with_args(struct device_node *np,
+static inline int of_parse_phandle_with_args(const struct device_node *np,
const char *list_name,
const char *cells_name,
int index,
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH][RESEND] of: add missing const for of_parse_phandle_with_args() in !CONFIG_OF
[not found] ` <201604141448.2STegOrD%fengguang.wu@intel.com>
2016-04-14 7:07 ` [PATCH] of: add missing const for of_parse_phandle_with_args() in !CONFIG_OF Kuninori Morimoto
@ 2016-05-10 2:53 ` Kuninori Morimoto
1 sibling, 0 replies; 2+ messages in thread
From: Kuninori Morimoto @ 2016-05-10 2:53 UTC (permalink / raw)
To: Rob Herring, Frank Rowand, Grant Likely, devicetree,
linux-kernel, Guennadi Liakhovetski
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
commit 93c667ca2598bd84f1bd3f2fa176af69707699fe
("of: *node argument to of_parse_phandle_with_args should be const")
changed struct device node *np as "const".
but it cares CONFIG_OF case only, !CONFIG_OF case need it too.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
include/linux/of.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/linux/of.h b/include/linux/of.h
index 7fcb681..4f2ce1b 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -585,7 +585,7 @@ static inline struct device_node *of_parse_phandle(const struct device_node *np,
return NULL;
}
-static inline int of_parse_phandle_with_args(struct device_node *np,
+static inline int of_parse_phandle_with_args(const struct device_node *np,
const char *list_name,
const char *cells_name,
int index,
--
1.9.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-05-10 2:53 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <87y48gvj9i.wl%kuninori.morimoto.gx@renesas.com>
[not found] ` <201604141448.2STegOrD%fengguang.wu@intel.com>
2016-04-14 7:07 ` [PATCH] of: add missing const for of_parse_phandle_with_args() in !CONFIG_OF Kuninori Morimoto
2016-05-10 2:53 ` [PATCH][RESEND] " Kuninori Morimoto
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).