You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Simon Glass
88f95bbadd
libfdt: Add fdt_next_subnode() to permit easy subnode iteration
...
Iterating through subnodes with libfdt is a little painful to write as we
need something like this:
for (depth = 0, count = 0,
offset = fdt_next_node(fdt, parent_offset, &depth);
(offset >= 0) && (depth > 0);
offset = fdt_next_node(fdt, offset, &depth)) {
if (depth == 1) {
/* code body */
}
}
Using fdt_next_subnode() we can instead write this, which is shorter and
easier to get right:
for (offset = fdt_first_subnode(fdt, parent_offset);
offset >= 0;
offset = fdt_next_subnode(fdt, offset)) {
/* code body */
}
Also, it doesn't require two levels of indentation for the loop body.
Signed-off-by: Simon Glass <sjg@chromium.org>
(Cherry-picked from dtc commit 4e76ec79)
Acked-by: Gerald Van Baren <vanbaren@cideas.com>
12 years ago
..
libfdt
libfdt: Add fdt_next_subnode() to permit easy subnode iteration
12 years ago
lzma
lzma: update to lzma sdk 9.20
13 years ago
lzo
…
tizen
create lib/tizen directory
13 years ago
zlib
lib/zlib: sparse fixes
13 years ago
Makefile
lib: consolidate hang()
12 years ago
addr_map.c
lib/powerpc: addrmap_phys_to_virt() should return a pointer
13 years ago
aes.c
Add AES crypto library
13 years ago
asm-offsets.c
arm: move C runtime setup code in crt0.S
13 years ago
bch.c
nand: Merge BCH code from Linux nand driver
14 years ago
bzlib.c
…
bzlib_crctable.c
…
bzlib_decompress.c
…
bzlib_huffman.c
…
bzlib_private.h
…
bzlib_randtable.c
…
circbuf.c
…
crc7.c
…
crc16.c
…
crc32.c
crc32: Correct endianness of crc32 result
12 years ago
ctype.c
…
display_options.c
display_options:print_buffer: align ASCII print
12 years ago
div64.c
…
errno.c
…
fdtdec.c
fdt: Skip checking FDT if the pointer is NULL
12 years ago
fdtdec_test.c
fdt: Add tests for fdtdec
13 years ago
gunzip.c
gunzip: rename z{alloc, free} to gz{alloc, free}
13 years ago
gzip.c
lib: add gzip lib function callback
13 years ago
hang.c
lib: consolidate hang()
12 years ago
hashtable.c
env: throw an error when an empty key is used
12 years ago
initcall.c
Introduce a basic initcall implementation
12 years ago
ldiv.c
…
linux_string.c
Make linux kernel string funcs available to tools
13 years ago
lmb.c
…
md5.c
GCC47: Fix warning in md5.c
13 years ago
net_utils.c
…
physmem.c
Introduce arch_phys_memset which works like memset but on physical memory
13 years ago
qsort.c
Include common.h in qsort.c to fix build warning
14 years ago
rand.c
lib: add rand() function
13 years ago
rbtree.c
…
sha1.c
sha1: Use const where possible, and unsigned for input len
13 years ago
sha256.c
sha256: Use const where possible and add watchdog function
13 years ago
slre.c
Add SLRE - Super Light Regular Expression library
12 years ago
string.c
Make linux kernel string funcs available to tools
13 years ago
strmhz.c
…
time.c
Move bootstage timer out of lib/time.c
13 years ago
tpm.c
tpm: Add TPM command library
12 years ago
uuid.c
lib: add uuid_str_to_bin for use with bootp and PXE uuid
14 years ago
vsprintf.c
vsprintf: add ustrtoll function
13 years ago