]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: Avoid creating a name property when unflattening
authorSimon Glass <sjg@chromium.org>
Wed, 7 Sep 2022 02:27:15 +0000 (20:27 -0600)
committerTom Rini <trini@konsulko.com>
Thu, 29 Sep 2022 20:11:14 +0000 (16:11 -0400)
commitae97b675a6d2cb009799fb7211b57f68c9471201
tree3992b6252e60c9fccd1661c9ef81f4d1e694c55d
parent6ec052c74e205e19396b2d155a879d493785ede7
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>
drivers/core/ofnode.c
include/dm/ofnode.h
lib/of_live.c