libfdt: Add and use a node iteration helper function.
authorDavid Gibson <david@gibson.dropbear.id.au>
Mon, 11 Feb 2008 13:58:31 +0000 (00:58 +1100)
committerMarian Balakowicz <m8@semihalf.com>
Fri, 29 Feb 2008 15:00:31 +0000 (16:00 +0100)
commitd1cc52879c8966507dad9fb575481e6d3985e64e
tree520740ce4303de372edfae1e204feea698fee233
parent8cf30809a82902a471866d2f07725ce3b8a22291
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>
include/libfdt.h
libfdt/fdt.c
libfdt/fdt_ro.c