]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
dtoc: add missing code comments
authorWalter Lozano <walter.lozano@collabora.com>
Thu, 25 Jun 2020 04:10:05 +0000 (01:10 -0300)
committerSimon Glass <sjg@chromium.org>
Fri, 10 Jul 2020 00:57:22 +0000 (18:57 -0600)
Add missing information about internal class members in order to make
the code easier to follow.

Signed-off-by: Walter Lozano <walter.lozano@collabora.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
tools/dtoc/dtb_platdata.py

index ecfe0624d1090659bbb0ee6ead9c8170d7c3c794..bc0de426a9ac968b237cf5409388f17efee16fe9 100644 (file)
@@ -140,6 +140,9 @@ class DtbPlatdata(object):
         _include_disabled: true to include nodes marked status = "disabled"
         _outfile: The current output file (sys.stdout or a real file)
         _lines: Stashed list of output lines for outputting in the future
+        _aliases: Dict that hold aliases for compatible strings
+            key: First compatible string declared in a node
+            value: List of additional compatible strings declared in a node
     """
     def __init__(self, dtb_fname, include_disabled):
         self._fdt = None