mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
tools: ynl: Handle byte-order in struct members
Add support for byte-order in struct members in the genetlink-legacy spec. Signed-off-by: Donald Hunter <donald.hunter@gmail.com> Acked-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
7c2435ef76
commit
bddd2e561b
@@ -226,11 +226,13 @@ class SpecStructMember(SpecElement):
|
||||
Represents a single struct member attribute.
|
||||
|
||||
Attributes:
|
||||
type string, type of the member attribute
|
||||
type string, type of the member attribute
|
||||
byte_order string or None for native byte order
|
||||
"""
|
||||
def __init__(self, family, yaml):
|
||||
super().__init__(family, yaml)
|
||||
self.type = yaml['type']
|
||||
self.byte_order = yaml.get('byte-order')
|
||||
|
||||
|
||||
class SpecStruct(SpecElement):
|
||||
|
Reference in New Issue
Block a user