of: introduce of_graph_get_remote_node
authorRob Herring <robh@kernel.org>
Fri, 3 Feb 2017 18:39:03 +0000 (12:39 -0600)
committerRob Herring <robh@kernel.org>
Wed, 15 Feb 2017 14:53:32 +0000 (08:53 -0600)
commitb85ad494098bf881c3713218fbd74193e5d5c488
treea57c1f3e5f422f3b4535f7069fe17b840a873722
parentbd0096d7467fbfa723cb1c12011098abf16de525
of: introduce of_graph_get_remote_node

The OF graph API leaves too much of the graph walking to clients when
in many cases the driver doesn't care about accessing the port or
endpoint nodes. The drivers typically just want the device connected via
a particular graph connection. of_graph_get_remote_node provides this
functionality.

Signed-off-by: Rob Herring <robh@kernel.org>
Acked-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/of/base.c
include/linux/of_graph.h