]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dtoc: Drop the convert_dash parameter to GetProps()
authorSimon Glass <sjg@chromium.org>
Tue, 26 Jul 2016 00:59:11 +0000 (18:59 -0600)
committerSimon Glass <sjg@chromium.org>
Mon, 19 Sep 2016 03:04:39 +0000 (21:04 -0600)
This is not used anywhere in dtoc, so drop it.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/dtoc/fdt_fallback.py

index f76f42a10165dd38cce837b7b3b4280c3749c397..1c8c9c7a6dc3d328ecd15c01e6a4a2030ab93cf0 100644 (file)
@@ -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