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:
parent
05ed875f35
commit
86e787e845
|
@ -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;
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue