aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of.h
diff options
context:
space:
mode:
authorJoerg Roedel <jroedel@suse.de>2016-04-04 11:49:18 -0400
committerRob Herring <robh@kernel.org>2016-04-19 18:25:13 -0400
commitcd209b412c8a5d632b51af1e45576f0d00b8105f (patch)
tree72164b609b058fe318f0f7dcd6d87d08f05ae842 /include/linux/of.h
parent74e1fbb1375a3ede3e17da22911761ce9bc8f53f (diff)
of: Move phandle walking to of_phandle_iterator_next()
Move the code to walk over the phandles out of the loop in __of_parse_phandle_with_args() to a separate function that just works with the iterator handle: of_phandle_iterator_next(). Signed-off-by: Joerg Roedel <jroedel@suse.de> Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'include/linux/of.h')
-rw-r--r--include/linux/of.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/of.h b/include/linux/of.h
index 0f187dbb890b..1f5e108f6716 100644
--- a/include/linux/of.h
+++ b/include/linux/of.h
@@ -358,6 +358,8 @@ extern int of_phandle_iterator_init(struct of_phandle_iterator *it,
358 const char *cells_name, 358 const char *cells_name,
359 int cell_count); 359 int cell_count);
360 360
361extern int of_phandle_iterator_next(struct of_phandle_iterator *it);
362
361extern void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align)); 363extern void of_alias_scan(void * (*dt_alloc)(u64 size, u64 align));
362extern int of_alias_get_id(struct device_node *np, const char *stem); 364extern int of_alias_get_id(struct device_node *np, const char *stem);
363extern int of_alias_get_highest_id(const char *stem); 365extern int of_alias_get_highest_id(const char *stem);
@@ -641,6 +643,11 @@ static inline int of_phandle_iterator_init(struct of_phandle_iterator *it,
641 return -ENOSYS; 643 return -ENOSYS;
642} 644}
643 645
646static inline int of_phandle_iterator_next(struct of_phandle_iterator *it)
647{
648 return -ENOSYS;
649}
650
644static inline int of_alias_get_id(struct device_node *np, const char *stem) 651static inline int of_alias_get_id(struct device_node *np, const char *stem)
645{ 652{
646 return -ENOSYS; 653 return -ENOSYS;