commit | d9d793c7c2bd12f2b959591031b2d3fb3c00b571 | [log] [tgz] |
---|---|---|
author | David Gibson <david@gibson.dropbear.id.au> | Tue Feb 12 11:58:31 2008 +1100 |
committer | Gerald Van Baren <vanbaren@cideas.com> | Tue Mar 18 21:03:45 2008 -0400 |
tree | 95f9df10a186b5c4c62d311f8df8d0830b06e7d4 | |
parent | fd1ea8f2f934fae627b67b5160f8c96ac8742c37 [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>