mirror of
https://github.com/dgibson/dtc.git
synced 2025-10-13 16:27:39 -04:00
dtc: Use libfdt/fdt.h instead of flat_dt.h
In the dtc tree, both flat_dt.h and libfdt/fdt.h have structures and constants relating to the flattened device tree format derived from asm-powerpc/prom.h in the kernel. The former is used in dtc, the latter in libfdt. libfdt/fdt.h is the more recent, revised version, so use that throughout, removing flat_dt.h. Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
parent
63dc9c7113
commit
fb7c7acf5a
6 changed files with 89 additions and 140 deletions
4
data.c
4
data.c
|
@ -246,9 +246,9 @@ struct data data_append_cell(struct data d, cell_t word)
|
|||
return data_append_data(d, &beword, sizeof(beword));
|
||||
}
|
||||
|
||||
struct data data_append_re(struct data d, struct reserve_entry *re)
|
||||
struct data data_append_re(struct data d, struct fdt_reserve_entry *re)
|
||||
{
|
||||
struct reserve_entry bere;
|
||||
struct fdt_reserve_entry bere;
|
||||
|
||||
bere.address = cpu_to_be64(re->address);
|
||||
bere.size = cpu_to_be64(re->size);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue