aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2017-04-19 21:32:17 -0400
committerMark Brown <broonie@kernel.org>2017-05-17 05:21:12 -0400
commit0ef472a973ebbfc20f2f12769e77a8cfd3612778 (patch)
treeef4228cd70a146b12f63e699e64e726e5b5cd54b /include/linux
parent4c9c3d595f1bad021cc126d20879df4016801736 (diff)
of_graph: add of_graph_get_port_parent()
Linux kernel already has of_graph_get_remote_port_parent(), but, sometimes we want to get own port parent. This patch adds of_graph_get_port_parent() Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/of_graph.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/of_graph.h b/include/linux/of_graph.h
index 0c9473a169dd..9db632d16cbc 100644
--- a/include/linux/of_graph.h
+++ b/include/linux/of_graph.h
@@ -50,6 +50,7 @@ struct device_node *of_graph_get_endpoint_by_regs(
50 const struct device_node *parent, int port_reg, int reg); 50 const struct device_node *parent, int port_reg, int reg);
51struct device_node *of_graph_get_remote_endpoint( 51struct device_node *of_graph_get_remote_endpoint(
52 const struct device_node *node); 52 const struct device_node *node);
53struct device_node *of_graph_get_port_parent(struct device_node *node);
53struct device_node *of_graph_get_remote_port_parent( 54struct device_node *of_graph_get_remote_port_parent(
54 const struct device_node *node); 55 const struct device_node *node);
55struct device_node *of_graph_get_remote_port(const struct device_node *node); 56struct device_node *of_graph_get_remote_port(const struct device_node *node);
@@ -88,6 +89,12 @@ static inline struct device_node *of_graph_get_remote_endpoint(
88 return NULL; 89 return NULL;
89} 90}
90 91
92static inline struct device_node *of_graph_get_port_parent(
93 struct device_node *node)
94{
95 return NULL;
96}
97
91static inline struct device_node *of_graph_get_remote_port_parent( 98static inline struct device_node *of_graph_get_remote_port_parent(
92 const struct device_node *node) 99 const struct device_node *node)
93{ 100{