summaryrefslogtreecommitdiff
path: root/include/dm/ofnode.h
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2025-01-10 17:00:27 -0700
committerTom Rini <trini@konsulko.com>2025-01-22 17:08:23 -0600
commitff698f2ddbcce5601a19fd61bef45aedd3d59cc6 (patch)
tree2bc7f3ac361258f883f9e028af610f2a10f105c3 /include/dm/ofnode.h
parentd5bc5c6cb0291203fe848a8532a7ecbcd44cfe9e (diff)
dm: core: Clarify behaviour of ofnode_name_eq()
This function is somewhat ambiguous, so expand the comments and add a test for the undefined behaviour. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm/ofnode.h')
-rw-r--r--include/dm/ofnode.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/include/dm/ofnode.h b/include/dm/ofnode.h
index c5f0a6d6788..2f3da384eba 100644
--- a/include/dm/ofnode.h
+++ b/include/dm/ofnode.h
@@ -386,11 +386,10 @@ static inline oftree oftree_from_np(struct device_node *root)
void oftree_dispose(oftree tree);
/**
- * ofnode_name_eq() - Check if the node name is equivalent to a given name
- * ignoring the unit address
+ * ofnode_name_eq() - Check a node name ignoring its unit address
*
- * @node: valid node reference that has to be compared
- * @name: name that has to be compared with the node name
+ * @node: valid node to compared, which may have a unit address
+ * @name: name (without unit address) to compare with the node name
* Return: true if matches, false if it doesn't match
*/
bool ofnode_name_eq(ofnode node, const char *name);