summaryrefslogtreecommitdiff
path: root/libfdt/fdt_sw.c
diff options
context:
space:
mode:
authorGerald Van Baren <vanbaren@cideas.com>2007-03-31 12:13:43 -0400
committerGerald Van Baren <vanbaren@cideas.com>2007-03-31 12:13:43 -0400
commit3af0d587d93e0be5f96e1b30fa41e662f8b0803e (patch)
treeaff9722cacec7ea01fc4a8464df5a2dfce39f703 /libfdt/fdt_sw.c
parentfa3a74cec73dfd06a5ae35a9a3368200273aaa71 (diff)
downloadu-boot-imx-3af0d587d93e0be5f96e1b30fa41e662f8b0803e.zip
u-boot-imx-3af0d587d93e0be5f96e1b30fa41e662f8b0803e.tar.gz
u-boot-imx-3af0d587d93e0be5f96e1b30fa41e662f8b0803e.tar.bz2
libfdt: Enhanced and published fdt_next_tag()
Enhanced the formerly private function _fdt_next_tag() to allow stepping through the tree, used to produce a human-readable dump, and made it part of the published interface. Also added some comments.
Diffstat (limited to 'libfdt/fdt_sw.c')
-rw-r--r--libfdt/fdt_sw.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libfdt/fdt_sw.c b/libfdt/fdt_sw.c
index 41d4891..672f4dd 100644
--- a/libfdt/fdt_sw.c
+++ b/libfdt/fdt_sw.c
@@ -203,7 +203,7 @@ int fdt_finish(void *fdt)
/* Walk the structure, correcting string offsets */
offset = 0;
- while ((tag = _fdt_next_tag(fdt, offset, &nextoffset)) != FDT_END) {
+ while ((tag = fdt_next_tag(fdt, offset, &nextoffset, NULL)) != FDT_END) {
if (tag == FDT_PROP) {
struct fdt_property *prop = fdt_offset_ptr(fdt, offset,
sizeof(*prop));