diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2011-08-09 19:12:34 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-09-14 11:47:42 +0200 |
commit | 58f3457f4f03313a7bab58f36382d57048fbe1c1 (patch) | |
tree | 9662cc78ea52a8a2efb9c3dc4b8d8a0e011f47b2 /common/oftree.c | |
parent | b2a13798a6c68c03ef87fbfdf66f2a942edebabd (diff) | |
download | barebox-58f3457f4f03313a7bab58f36382d57048fbe1c1.tar.gz barebox-58f3457f4f03313a7bab58f36382d57048fbe1c1.tar.xz |
of: add devicetree probing support
This adds code to probe devices from a devicetree. Most helper
functions are directly imported from Linux.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/oftree.c')
-rw-r--r-- | common/oftree.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/oftree.c b/common/oftree.c index 677e934a98..3e8c6f8c65 100644 --- a/common/oftree.c +++ b/common/oftree.c @@ -57,7 +57,7 @@ static int is_printable_string(const void *data, int len) * a string, concatenated strings, a byte, word, double word, or (if all * else fails) it is printed as a stream of bytes. */ -static void print_data(const void *data, int len) +void of_print_property(const void *data, int len) { int j; @@ -169,7 +169,7 @@ int fdt_print(struct fdt_header *working_fdt, const char *pathp) printf_indent(level, "%s;\n", pathp); } else { printf_indent(level, "%s = ", pathp); - print_data(nodep, len); + of_print_property(nodep, len); printf(";\n"); } break; |