]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - include/dm/ofnode.h
core: ofnode: add ofnode_get_parent function
[people/ms/u-boot.git] / include / dm / ofnode.h
index c359a60f9536a78830d33c23497ba412991e111d..6938e62993e83b8d9cda7d8f53a28182e1bb23c9 100644 (file)
@@ -301,6 +301,14 @@ ofnode ofnode_first_subnode(ofnode node);
  */
 ofnode ofnode_next_subnode(ofnode node);
 
+/**
+ * ofnode_get_parent() - get the ofnode's parent (enclosing ofnode)
+ *
+ * @node: valid node to look up
+ * @return ofnode reference of the parent node
+ */
+ofnode ofnode_get_parent(ofnode node);
+
 /**
  * ofnode_get_name() - get the name of a node
  *