]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: Allow writing to a flat tree with ofnode
authorSimon Glass <sjg@chromium.org>
Sat, 30 Jul 2022 21:52:13 +0000 (15:52 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 12 Aug 2022 12:14:24 +0000 (08:14 -0400)
commit50e78e314fd5d895e64e0a52d4b6377147c6597c
tree14b0f51e7ad986d730b39d8b0bf0440ddf1b5659
parentce8020c5b9e933430646e0924216d22aac174a46
dm: core: Allow writing to a flat tree with ofnode

In generally it is not permitted to implement an ofnode function only for
flat tree or live tree. Both must be supported. Also the code for
live tree access should be in of_access.c rather than ofnode.c which is
really just for holding the API-conversion code.

Update ofnode_write_prop() accordingly and fix the test so it can work
with flat tree too.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/of_access.c
drivers/core/ofnode.c
include/dm/of_access.h
include/dm/ofnode.h
test/dm/ofnode.c