aboutsummaryrefslogtreecommitdiffstats
path: root/tools/net/ynl/pyynl/ynl_gen_c.py
diff options
context:
space:
mode:
authorJakub Kicinski <[email protected]>2025-04-29 15:46:53 +0000
committerPaolo Abeni <[email protected]>2025-05-02 10:41:02 +0000
commita6471da7745aa16b1534848877ce73739668992b (patch)
tree354db0a14aa8021b7febd8e958e12cdbae4a8cdd /tools/net/ynl/pyynl/ynl_gen_c.py
parentdt-bindings: net: via-rhine: Convert to YAML (diff)
downloadkernel-a6471da7745aa16b1534848877ce73739668992b.tar.gz
kernel-a6471da7745aa16b1534848877ce73739668992b.zip
tools: ynl-gen: fix comment about nested struct dict
The dict stores struct objects (of class Struct), not just a trivial set with directions. Reviewed-by: Donald Hunter <[email protected]> Reviewed-by: Jacob Keller <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/net/ynl/pyynl/ynl_gen_c.py')
-rwxr-xr-xtools/net/ynl/pyynl/ynl_gen_c.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/net/ynl/pyynl/ynl_gen_c.py b/tools/net/ynl/pyynl/ynl_gen_c.py
index 9613a6135003..077aacd5f33a 100755
--- a/tools/net/ynl/pyynl/ynl_gen_c.py
+++ b/tools/net/ynl/pyynl/ynl_gen_c.py
@@ -1015,7 +1015,7 @@ class Family(SpecFamily):
# dict space-name -> 'request': set(attrs), 'reply': set(attrs)
self.root_sets = dict()
- # dict space-name -> set('request', 'reply')
+ # dict space-name -> Struct
self.pure_nested_structs = dict()
self._mark_notify()