]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
binman: Rename _ReadSubnodes() to ReadEntries()
authorSimon Glass <sjg@chromium.org>
Wed, 24 Nov 2021 04:09:53 +0000 (21:09 -0700)
committerSimon Glass <sjg@chromium.org>
Sun, 5 Dec 2021 16:23:15 +0000 (09:23 -0700)
This method name is more commonly used for this function. Use it
consistently.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/binman/etype/fit.py
tools/binman/etype/intel_ifwi.py
tools/binman/etype/mkimage.py

index 6936f5736a62bb4e39a2ff2f1bed9645d80cc656..b41187df80ab9532dcd8a12ac9766e0c75b8fc38 100644 (file)
@@ -136,10 +136,10 @@ class Entry_fit(Entry):
                                                                   str)])[0]
 
     def ReadNode(self):
-        self._ReadSubnodes()
+        self.ReadEntries()
         super().ReadNode()
 
-    def _ReadSubnodes(self):
+    def ReadEntries(self):
         def _AddNode(base_node, depth, node):
             """Add a node to the FIT
 
index 903d39bdbebe21a63421f30413b866f4a309ea20..ecbd78df5e585d2eb645d6389c59756db75b9a14 100644 (file)
@@ -50,7 +50,7 @@ class Entry_intel_ifwi(Entry_blob_ext):
         self._ifwi_entries = OrderedDict()
 
     def ReadNode(self):
-        self._ReadSubnodes()
+        self.ReadEntries()
         super().ReadNode()
 
     def _BuildIfwi(self):
@@ -117,7 +117,7 @@ class Entry_intel_ifwi(Entry_blob_ext):
         same = orig_data == self.data
         return same
 
-    def _ReadSubnodes(self):
+    def ReadEntries(self):
         """Read the subnodes to find out what should go in this IFWI"""
         for node in self._node.subnodes:
             entry = Entry.Create(self.section, node)
index e49977522e30f73565abc18ae1e4ddd65a65f35c..c08fd9dc0b63600b8757fc27c7acea1a36cc7e07 100644 (file)
@@ -37,7 +37,7 @@ class Entry_mkimage(Entry):
         self._args = fdt_util.GetString(self._node, 'args').split(' ')
         self._mkimage_entries = OrderedDict()
         self.align_default = None
-        self._ReadSubnodes()
+        self.ReadEntries()
 
     def ObtainContents(self):
         data = b''
@@ -55,7 +55,7 @@ class Entry_mkimage(Entry):
         self.SetContents(tools.ReadFile(output_fname))
         return True
 
-    def _ReadSubnodes(self):
+    def ReadEntries(self):
         """Read the subnodes to find out what should go in this image"""
         for node in self._node.subnodes:
             entry = Entry.Create(self, node)