]> git.dujemihanovic.xyz Git - u-boot.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)
commit085d59411ca7cde4ca5c70beeab4fdcea209aed6
tree2d5b1b974b7230c21a605394279657b14147ab39
parenta3f50d038695887808497c1a15c9fcc122d964e6
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