diff options
author | Teresa Gámez <t.gamez@phytec.de> | 2014-09-30 13:15:28 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-10-01 08:13:02 +0200 |
commit | d1d7876499405493688a7f79a49651dbbe099c52 (patch) | |
tree | 1108793465f472278d7ed445b9a9e8bb740f617a /include/of.h | |
parent | 55475204cd0939f9c426c648706bf63486029657 (diff) | |
download | barebox-d1d7876499405493688a7f79a49651dbbe099c52.tar.gz barebox-d1d7876499405493688a7f79a49651dbbe099c52.tar.xz |
of: base: Add of_parse_phandle_from
Added of_parse_phandle_from() to be able to use external root nodes.
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 | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/of.h b/include/of.h index 4281cceae0..decf1517a7 100644 --- a/include/of.h +++ b/include/of.h @@ -205,6 +205,10 @@ extern int of_property_write_u64_array(struct device_node *np, extern struct device_node *of_parse_phandle(const struct device_node *np, const char *phandle_name, int index); +extern struct device_node *of_parse_phandle_from(const struct device_node *np, + struct device_node *root, + const char *phandle_name, + int index); extern int of_parse_phandle_with_args(const struct device_node *np, const char *list_name, const char *cells_name, int index, struct of_phandle_args *out_args); @@ -439,6 +443,13 @@ static inline struct device_node *of_parse_phandle(const struct device_node *np, return NULL; } +static inline struct device_node *of_parse_phandle_from(const struct device_node *np, + struct device_node *root, + const char *phandle_name, int index) +{ + return NULL; +} + static inline int of_parse_phandle_with_args(const struct device_node *np, const char *list_name, const char *cells_name, int index, struct of_phandle_args *out_args) |