summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2016-07-25 18:59:11 -0600
committerSimon Glass <sjg@chromium.org>2016-09-18 21:04:39 -0600
commit6b93c55f59aba3a3fff36b771ca75739e31ba7db (patch)
tree8f0d418030f8b76d420cc237fadd0c446478c473 /tools
parent355c67c35a8ce5aa9e9e2e2e8df99413c8215093 (diff)
downloadu-boot-imx-6b93c55f59aba3a3fff36b771ca75739e31ba7db.zip
u-boot-imx-6b93c55f59aba3a3fff36b771ca75739e31ba7db.tar.gz
u-boot-imx-6b93c55f59aba3a3fff36b771ca75739e31ba7db.tar.bz2
dtoc: Drop the convert_dash parameter to GetProps()
This is not used anywhere in dtoc, so drop it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools')
-rw-r--r--tools/dtoc/fdt_fallback.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/dtoc/fdt_fallback.py b/tools/dtoc/fdt_fallback.py
index f76f42a..1c8c9c7 100644
--- a/tools/dtoc/fdt_fallback.py
+++ b/tools/dtoc/fdt_fallback.py
@@ -98,12 +98,11 @@ class FdtFallback(Fdt):
out = command.Output('fdtget', self._fname, '-l', node)
return out.strip().splitlines()
- def GetProps(self, node, convert_dashes=False):
+ def GetProps(self, node):
"""Get all properties from a node
Args:
node: full path to node name to look in
- convert_dashes: True to convert - to _ in node names
Returns:
A dictionary containing all the properties, indexed by node name.
@@ -118,8 +117,6 @@ class FdtFallback(Fdt):
props_dict = {}
for prop in props:
name = prop
- if convert_dashes:
- prop = re.sub('-', '_', prop)
props_dict[prop] = self.GetProp(node, name)
return props_dict