mirror of
https://github.com/Fishwaldo/u-boot.git
synced 2025-06-22 06:32:23 +00:00
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>
This commit is contained in:
parent
355c67c35a
commit
6b93c55f59
1 changed files with 1 additions and 4 deletions
|
@ -98,12 +98,11 @@ class FdtFallback(Fdt):
|
||||||
out = command.Output('fdtget', self._fname, '-l', node)
|
out = command.Output('fdtget', self._fname, '-l', node)
|
||||||
return out.strip().splitlines()
|
return out.strip().splitlines()
|
||||||
|
|
||||||
def GetProps(self, node, convert_dashes=False):
|
def GetProps(self, node):
|
||||||
"""Get all properties from a node
|
"""Get all properties from a node
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
node: full path to node name to look in
|
node: full path to node name to look in
|
||||||
convert_dashes: True to convert - to _ in node names
|
|
||||||
|
|
||||||
Returns:
|
Returns:
|
||||||
A dictionary containing all the properties, indexed by node name.
|
A dictionary containing all the properties, indexed by node name.
|
||||||
|
@ -118,8 +117,6 @@ class FdtFallback(Fdt):
|
||||||
props_dict = {}
|
props_dict = {}
|
||||||
for prop in props:
|
for prop in props:
|
||||||
name = prop
|
name = prop
|
||||||
if convert_dashes:
|
|
||||||
prop = re.sub('-', '_', prop)
|
|
||||||
props_dict[prop] = self.GetProp(node, name)
|
props_dict[prop] = self.GetProp(node, name)
|
||||||
return props_dict
|
return props_dict
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue