summaryrefslogtreecommitdiffstats
path: root/scripts/dtc/treesource.c
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dtc/treesource.c')
-rw-r--r--scripts/dtc/treesource.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/scripts/dtc/treesource.c b/scripts/dtc/treesource.c
index a55d1d128cce..c9d8967969f9 100644
--- a/scripts/dtc/treesource.c
+++ b/scripts/dtc/treesource.c
@@ -25,12 +25,12 @@ extern FILE *yyin;
25extern int yyparse(void); 25extern int yyparse(void);
26extern YYLTYPE yylloc; 26extern YYLTYPE yylloc;
27 27
28struct boot_info *the_boot_info; 28struct dt_info *parser_output;
29bool treesource_error; 29bool treesource_error;
30 30
31struct boot_info *dt_from_source(const char *fname) 31struct dt_info *dt_from_source(const char *fname)
32{ 32{
33 the_boot_info = NULL; 33 parser_output = NULL;
34 treesource_error = false; 34 treesource_error = false;
35 35
36 srcfile_push(fname); 36 srcfile_push(fname);
@@ -43,7 +43,7 @@ struct boot_info *dt_from_source(const char *fname)
43 if (treesource_error) 43 if (treesource_error)
44 die("Syntax error parsing input tree\n"); 44 die("Syntax error parsing input tree\n");
45 45
46 return the_boot_info; 46 return parser_output;
47} 47}
48 48
49static void write_prefix(FILE *f, int level) 49static void write_prefix(FILE *f, int level)
@@ -263,13 +263,13 @@ static void write_tree_source_node(FILE *f, struct node *tree, int level)
263} 263}
264 264
265 265
266void dt_to_source(FILE *f, struct boot_info *bi) 266void dt_to_source(FILE *f, struct dt_info *dti)
267{ 267{
268 struct reserve_info *re; 268 struct reserve_info *re;
269 269
270 fprintf(f, "/dts-v1/;\n\n"); 270 fprintf(f, "/dts-v1/;\n\n");
271 271
272 for (re = bi->reservelist; re; re = re->next) { 272 for (re = dti->reservelist; re; re = re->next) {
273 struct label *l; 273 struct label *l;
274 274
275 for_each_label(re->labels, l) 275 for_each_label(re->labels, l)
@@ -279,6 +279,6 @@ void dt_to_source(FILE *f, struct boot_info *bi)
279 (unsigned long long)re->re.size); 279 (unsigned long long)re->re.size);
280 } 280 }
281 281
282 write_tree_source_node(f, bi->dt, 0); 282 write_tree_source_node(f, dti->dt, 0);
283} 283}
284 284