mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
dm: core: Avoid creating a name property when unflattening
The current implementation creates a 'name' value for every node. This is not needed for the latest device tree format, which includes a name in the node header. Adjust the code to point the name at the node header instead. Also simplify ofnode_get_name(), now that we can rely on it to set the name correctly. Update the comment to make it clear what name the root node has. Signed-off-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
9243224687
commit
f46ec93ed5
3 changed files with 8 additions and 3 deletions
|
@ -466,7 +466,7 @@ ofnode ofnode_get_parent(ofnode node);
|
|||
* ofnode_get_name() - get the name of a node
|
||||
*
|
||||
* @node: valid node to look up
|
||||
* Return: name of node
|
||||
* Return: name of node (for the root node this is "")
|
||||
*/
|
||||
const char *ofnode_get_name(ofnode node);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue