aboutsummaryrefslogtreecommitdiff
path: root/fstree.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2016-05-31 11:58:42 +1000
committerDavid Gibson <david@gibson.dropbear.id.au>2016-12-09 16:30:43 +1100
commit00fbb8696b665ab138406cc9522793f2096031a0 (patch)
tree9a90007c2f98ea3b0ffccebafda5f358fefd3566 /fstree.c
parent1ef86ad2c24f67567b1021ca5cb84bea82749f88 (diff)
downloaddtc-00fbb8696b665ab138406cc9522793f2096031a0.tar.gz
Rename boot_info
struct boot_info is named that for historical reasons, and isn't particularly meaningful. Essentially it contains all the information - in "live" form from a single dts or dtb file. As we move towards support for dynamic dt overlays, that name will become increasingly bad. So, in preparation, rename it to dt_info. At the same time rename the 'the_boot_info' global to 'parser_output' since that's its actual purpose. Unfortunately we do need the global unless we switch to bison's re-entrant parser extensions, which would introduce its own complications. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'fstree.c')
-rw-r--r--fstree.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/fstree.c b/fstree.c
index e67fd9f..ae7d06c 100644
--- a/fstree.c
+++ b/fstree.c
@@ -79,13 +79,12 @@ static struct node *read_fstree(const char *dirname)
return tree;
}
-struct boot_info *dt_from_fs(const char *dirname)
+struct dt_info *dt_from_fs(const char *dirname)
{
struct node *tree;
tree = read_fstree(dirname);
tree = name_node(tree, "");
- return build_boot_info(DTSF_V1, NULL, tree, guess_boot_cpuid(tree));
+ return build_dt_info(DTSF_V1, NULL, tree, guess_boot_cpuid(tree));
}
-