diff options
| author | Simon Glass <[email protected]> | 2025-01-10 17:00:11 -0700 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-01-22 15:58:03 -0600 |
| commit | 957869414077efa66ca866e9fcced34ec9678a38 (patch) | |
| tree | d336d1d1b7701479f42333232e418f1e173273ae /include | |
| parent | 8b2561bf9f548f78ddf4dca05126a3bd5d1a3f94 (diff) | |
ofnode: Update of_add_subnode() to indicate name is alloced
This function allocates memory for the node name, so mention this in the
function comment.
Signed-off-by: Simon Glass <[email protected]>
Diffstat (limited to 'include')
| -rw-r--r-- | include/dm/ofnode.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h index 890f0e6cf40..c5f0a6d6788 100644 --- a/include/dm/ofnode.h +++ b/include/dm/ofnode.h @@ -1809,7 +1809,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 |
