]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: Add ofnode functions to obtain an oftree
authorSimon Glass <sjg@chromium.org>
Wed, 7 Sep 2022 02:27:21 +0000 (20:27 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 30 Sep 2022 02:43:43 +0000 (22:43 -0400)
commit181effbe7b01ca59c68c8c93c2aa1e707224d909
tree2d5b1b974b7230c21a605394279657b14147ab39
parent69ddac8a60e5a9c16f0536c4017929cc7983c3f7
dm: core: Add ofnode functions to obtain an oftree

At present dm_test_ofnode_root() does this manually. Add some inline
functions to handle it, so this code can be centralised.

Add oftree functions to produce a null tree and to check whether a tree
is valid or not.

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