summaryrefslogtreecommitdiffstats
path: root/libfdt/fdt_wip.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_wip.c
parentfa3a74cec73dfd06a5ae35a9a3368200273aaa71 (diff)
downloadblackbird-obmc-uboot-3af0d587d93e0be5f96e1b30fa41e662f8b0803e.tar.gz
blackbird-obmc-uboot-3af0d587d93e0be5f96e1b30fa41e662f8b0803e.zip
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_wip.c')
-rw-r--r--libfdt/fdt_wip.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libfdt/fdt_wip.c b/libfdt/fdt_wip.c
index 0db7d259f5..261b9b0dc9 100644
--- a/libfdt/fdt_wip.c
+++ b/libfdt/fdt_wip.c
@@ -68,12 +68,12 @@ int _fdt_node_end_offset(void *fdt, int nodeoffset)
uint32_t tag;
int offset, nextoffset;
- tag = _fdt_next_tag(fdt, nodeoffset, &nextoffset);
+ tag = fdt_next_tag(fdt, nodeoffset, &nextoffset, NULL);
if (tag != FDT_BEGIN_NODE)
return -FDT_ERR_BADOFFSET;
do {
offset = nextoffset;
- tag = _fdt_next_tag(fdt, offset, &nextoffset);
+ tag = fdt_next_tag(fdt, offset, &nextoffset, NULL);
switch (tag) {
case FDT_END:
OpenPOWER on IntegriCloud