Skip to content
Commit 2187cb7e authored by Simon Glass's avatar Simon Glass Committed by Tom Rini
Browse files

dm: core: Allow obtaining a node offset in the same tree



In some cases we want to obtain an ofnode in the same tree as a different
ofnode, such as when looking up a subnode. At present this is trivial,
since there is only one tree. When there are multiple trees, this
implementation will change.

Also move the ofnode_to_offset() function up higher in the header file,
since we will need to provide a different implementation with multiple
trees.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
parent 928d267a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment