[PATCH v2 14/33] ofnode: Update of_add_subnode() to indicate name is alloced
Simon Glass
sjg at chromium.org
Mon Jan 6 15:32:10 CET 2025
This function allocates memory for the node name, so mention this in the
function comment.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
(no changes since v1)
include/dm/ofnode.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h
index 0787758926f..024ae4cd289 100644
--- a/include/dm/ofnode.h
+++ b/include/dm/ofnode.h
@@ -1702,7 +1702,7 @@ static inline int ofnode_read_bootscript_flash(u64 *bootscr_flash_offset,
* of_add_subnode() - add a new subnode to a node
*
* @parent: parent node to add to
- * @name: name of subnode
+ * @name: name of subnode (allocated by this function)
* @nodep: returns pointer to new subnode (valid if the function returns 0
* or -EEXIST)
* Returns 0 if OK, -EEXIST if already exists, -ENOMEM if out of memory, other
--
2.34.1
More information about the U-Boot
mailing list