diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2016-05-31 11:58:42 +1000 |
---|---|---|
committer | David Gibson <david@gibson.dropbear.id.au> | 2016-12-09 16:30:43 +1100 |
commit | 00fbb8696b665ab138406cc9522793f2096031a0 (patch) | |
tree | 9a90007c2f98ea3b0ffccebafda5f358fefd3566 /dtc-parser.y | |
parent | 1ef86ad2c24f67567b1021ca5cb84bea82749f88 (diff) | |
download | dtc-00fbb8696b665ab138406cc9522793f2096031a0.zip dtc-00fbb8696b665ab138406cc9522793f2096031a0.tar.gz dtc-00fbb8696b665ab138406cc9522793f2096031a0.tar.bz2 |
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 'dtc-parser.y')
-rw-r--r-- | dtc-parser.y | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dtc-parser.y b/dtc-parser.y index 761ce8a..b2fd4d1 100644 --- a/dtc-parser.y +++ b/dtc-parser.y @@ -32,7 +32,7 @@ extern void yyerror(char const *s); treesource_error = true; \ } while (0) -extern struct boot_info *the_boot_info; +extern struct dt_info *parser_output; extern bool treesource_error; %} @@ -108,8 +108,8 @@ extern bool treesource_error; sourcefile: headers memreserves devicetree { - the_boot_info = build_boot_info($1, $2, $3, - guess_boot_cpuid($3)); + parser_output = build_dt_info($1, $2, $3, + guess_boot_cpuid($3)); } ; |