mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
dm: core: Add helper to compare node names
Add helper to compare node names. Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com> Reviewed-by: Simon Glass <sjg@chromium.org> Link: https://lore.kernel.org/r/20210721155849.20994-2-kishon@ti.com
This commit is contained in:
committed by
Lokesh Vutla
parent
e8ad4cb01c
commit
77cbaf8837
@@ -231,6 +231,16 @@ static inline ofnode ofnode_root(void)
|
||||
return node;
|
||||
}
|
||||
|
||||
/**
|
||||
* ofnode_name_eq() - Check if the node name is equivalent to a given name
|
||||
* ignoring the unit address
|
||||
*
|
||||
* @node: valid node reference that has to be compared
|
||||
* @name: name that has to be compared with the node name
|
||||
* @return true if matches, false if it doesn't match
|
||||
*/
|
||||
bool ofnode_name_eq(ofnode node, const char *name);
|
||||
|
||||
/**
|
||||
* ofnode_read_u32() - Read a 32-bit integer from a property
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user