diff options
author | Teresa Gámez <t.gamez@phytec.de> | 2014-09-30 13:15:27 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-10-01 08:13:02 +0200 |
commit | 55475204cd0939f9c426c648706bf63486029657 (patch) | |
tree | a22eee57d8070a990f93986f1ba31207460ba38f /include/of.h | |
parent | 1e19346e978944599ef05899314706ab2f800707 (diff) | |
download | barebox-55475204cd0939f9c426c648706bf63486029657.tar.gz barebox-55475204cd0939f9c426c648706bf63486029657.tar.xz |
of: base: Add of_find_node_by_phandle_from
Added of_find_node_by_phandle_from() to find nodes by
phandle with a given root node.
Signed-off-by: Teresa Gámez <t.gamez@phytec.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/of.h')
-rw-r--r-- | include/of.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h index cd2bfe035d..4281cceae0 100644 --- a/include/of.h +++ b/include/of.h @@ -123,6 +123,8 @@ extern struct device_node *of_find_node_by_path_from(struct device_node *from, const char *path); extern struct device_node *of_find_node_by_path(const char *path); extern struct device_node *of_find_node_by_phandle(phandle phandle); +extern struct device_node *of_find_node_by_phandle_from(phandle phandle, + struct device_node *root); extern struct device_node *of_find_node_by_type(struct device_node *from, const char *type); extern struct device_node *of_find_compatible_node(struct device_node *from, @@ -472,6 +474,12 @@ static inline struct device_node *of_find_node_by_phandle(phandle phandle) return NULL; } +static inline struct device_node *of_find_node_by_phandle_from(phandle phandle, + struct device_node *root) +{ + return NULL; +} + static inline struct device_node *of_find_compatible_node( struct device_node *from, const char *type, |