aboutsummaryrefslogtreecommitdiff
path: root/tools/dtoc/fdt.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-07-17 13:25:41 -0600
committerSimon Glass <sjg@chromium.org>2018-08-01 16:30:48 -0600
commit1d85888cdc1d831ff7a70b95922ee85195e7e09f (patch)
tree815bebaa007a782847109b20d2ff2ee64944140b /tools/dtoc/fdt.py
parent3af8e49ceff044021725fc547b19ebac22d0b0f7 (diff)
downloadu-boot-1d85888cdc1d831ff7a70b95922ee85195e7e09f.zip
u-boot-1d85888cdc1d831ff7a70b95922ee85195e7e09f.tar.gz
u-boot-1d85888cdc1d831ff7a70b95922ee85195e7e09f.tar.bz2
dtoc: Export the _FindNode() function
This is useful for clients that want to find a node. Export it so it can be used by others. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/dtoc/fdt.py')
-rw-r--r--tools/dtoc/fdt.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/dtoc/fdt.py b/tools/dtoc/fdt.py
index 9d69b42..01e39b8 100644
--- a/tools/dtoc/fdt.py
+++ b/tools/dtoc/fdt.py
@@ -181,7 +181,7 @@ class Node:
self.subnodes = []
self.props = {}
- def _FindNode(self, name):
+ def FindNode(self, name):
"""Find a node given its name
Args:
@@ -349,7 +349,7 @@ class Fdt:
if len(parts) < 2:
return None
for part in parts[1:]:
- node = node._FindNode(part)
+ node = node.FindNode(part)
if not node:
return None
return node