aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-10-11 09:47:19 -0600
committerSimon Glass <sjg@chromium.org>2022-10-17 21:17:13 -0600
commite7a18f751117ab38567d3929eacdcd9f3d6f5693 (patch)
tree07230907bc96924512a41d51049df64ef476a659 /include
parent8aaacd61368929cd2af2296f00ee15fa4bf0ae55 (diff)
downloadu-boot-e7a18f751117ab38567d3929eacdcd9f3d6f5693.zip
u-boot-e7a18f751117ab38567d3929eacdcd9f3d6f5693.tar.gz
u-boot-e7a18f751117ab38567d3929eacdcd9f3d6f5693.tar.bz2
dm: core: Update docs about oftree_from_fdt()
Update this function's comment and also the livetree documentation, so it is clear when to use the function. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include')
-rw-r--r--include/dm/ofnode.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h
index 7aae2c2..fa98656 100644
--- a/include/dm/ofnode.h
+++ b/include/dm/ofnode.h
@@ -59,6 +59,9 @@ __attribute_const__ int ofnode_to_offset(ofnode node);
/**
* oftree_from_fdt() - Returns an oftree from a flat device tree pointer
*
+ * If @fdt is not already registered in the list of current device trees, it is
+ * added to the list.
+ *
* @fdt: Device tree to use
*
* Returns: reference to the given node