commit | e8d082165cd48874d2ba16be3c1dbed38407d0bc | [log] [tgz] |
---|---|---|
author | David Gibson <david@gibson.dropbear.id.au> | Tue Feb 12 00:58:31 2008 +1100 |
committer | Marian Balakowicz <m8@semihalf.com> | Fri Feb 29 16:00:31 2008 +0100 |
tree | 520740ce4303de372edfae1e204feea698fee233 | |
parent | 61250867706664b50490751d7890daae2e765256 [diff] |
libfdt: Add and use a node iteration helper function. This patch adds an fdt_next_node() function which can be used to iterate through nodes of the tree while keeping track of depth. This function is used to simplify the iteration code in a lot of other functions, and is also exported for use by library users. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>