aboutsummaryrefslogtreecommitdiff
path: root/include/linux/of_graph.h
diff options
context:
space:
mode:
authorKuninori Morimoto2017-04-20 01:32:17 +0000
committerMark Brown2017-05-17 10:21:12 +0100
commit0ef472a973ebbfc20f2f12769e77a8cfd3612778 (patch)
treeef4228cd70a146b12f63e699e64e726e5b5cd54b /include/linux/of_graph.h
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/of_graph.h')
-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(
const struct device_node *parent, int port_reg, int reg);
struct device_node *of_graph_get_remote_endpoint(
const struct device_node *node);
+struct device_node *of_graph_get_port_parent(struct device_node *node);
struct device_node *of_graph_get_remote_port_parent(
const struct device_node *node);
struct 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(
return NULL;
}
+static inline struct device_node *of_graph_get_port_parent(
+ struct device_node *node)
+{
+ return NULL;
+}
+
static inline struct device_node *of_graph_get_remote_port_parent(
const struct device_node *node)
{