]> git.sur5r.net Git - u-boot/commit
libfdt: Add and use a node iteration helper function.
authorDavid Gibson <david@gibson.dropbear.id.au>
Tue, 12 Feb 2008 00:58:31 +0000 (11:58 +1100)
committerGerald Van Baren <vanbaren@cideas.com>
Wed, 19 Mar 2008 01:03:45 +0000 (21:03 -0400)
commitae0b5908de3b9855f8931bc9b32c9fc4962df5a9
tree95f9df10a186b5c4c62d311f8df8d0830b06e7d4
parent9eaeb07a7185d852c7aa10735ecd4e9edf24fb5d
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