9
0
Fork 0

of: rename of_parse_dtb to of_unflatten_dtb

The process of unflatten the device tree is known from the kernel,
so rename the function, because that's what it does.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-01-08 18:13:30 +01:00
parent 05ed875f35
commit 86e787e845
3 changed files with 3 additions and 2 deletions

View File

@ -108,7 +108,7 @@ static int do_oftree(int argc, char *argv[])
return 1;
}
ret = of_parse_dtb(fdt);
ret = of_unflatten_dtb(fdt);
if (ret) {
printf("parse oftree: %s\n", strerror(-ret));
return 1;

View File

@ -833,7 +833,7 @@ int of_probe(void)
* Parse a flat device tree binary blob and store it in the barebox
* internal tree format,
*/
int of_parse_dtb(struct fdt_header *fdt)
int of_unflatten_dtb(struct fdt_header *fdt)
{
const void *nodep; /* property node pointer */
int nodeoffset; /* node offset from libfdt */

View File

@ -108,6 +108,7 @@ void of_print_nodes(struct device_node *node, int indent);
int of_probe(void);
int of_parse_dtb(struct fdt_header *fdt);
void of_free(struct device_node *node);
int of_unflatten_dtb(struct fdt_header *fdt);
int of_property_read_string(struct device_node *np, const char *propname,
const char **out_string);