]> git.baikalelectronics.ru Git - uboot.git/commit
dm: core: Add an ofnode function to get the devicetree root
authorSimon Glass <sjg@chromium.org>
Sun, 29 Nov 2020 00:50:07 +0000 (17:50 -0700)
committerSimon Glass <sjg@chromium.org>
Sun, 13 Dec 2020 14:58:18 +0000 (07:58 -0700)
commitfa657d90db54c4152f9fca50ecd80692b2eab6d5
treebc04f32a35dfd54b571512fa792085130d228ed4
parent05222d1ecb73f2a3f24b77d7a20ef26a519c6124
dm: core: Add an ofnode function to get the devicetree root

This is needed in at least one place. Avoid the conditional code in root.c
by adding this inline function.

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