Browse Source

Fix flat_dt_property structure

The structure in flat_dt.h defining the layout of a proprety within
the flat device tree is incorrect.  It has the offset to the
property's name, then the length when in fact (according to
booting-without-of.txt and the output of dtc) then length should come
first, followed by the name offset.

In fact, this structure is never used so the mistake doesn't break
anything, but it should still be fixed to avoid misleading people.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
main
David Gibson 18 years ago committed by Jon Loeliger
parent
commit
6ae55f9f9b
  1. 2
      flat_dt.h

2
flat_dt.h

@ -37,8 +37,8 @@ struct reserve_entry { @@ -37,8 +37,8 @@ struct reserve_entry {
};

struct flat_dt_property {
uint32_t nameoff;
uint32_t len;
uint32_t nameoff;
char data[0];
};


Loading…
Cancel
Save