diff options
author | Paul Elder <paul.elder@ideasonboard.com> | 2024-11-26 00:13:57 +0900 |
---|---|---|
committer | Paul Elder <paul.elder@ideasonboard.com> | 2024-12-18 17:26:52 +0900 |
commit | 39fe4ad96803f4dd97f034c3e4c05c55757bce11 (patch) | |
tree | ee154c25987962fd12d321f6710040c6305a79d7 /utils/codegen/gen-controls.py | |
parent | 9bd9d25a8297441d6cd8934cc3df2a8bbb497251 (diff) |
utils: codegen: controls.py: Parse direction information
In preparation for adding support for querying direction information
from controls, parse the direction information from control ID
definitions. This can later be plugged in directly to the IPA code
generators simply by using ctrl.direction.
Signed-off-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Stefan Klug <stefan.klug@ideasonboard.com>
Diffstat (limited to 'utils/codegen/gen-controls.py')
-rwxr-xr-x | utils/codegen/gen-controls.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/codegen/gen-controls.py b/utils/codegen/gen-controls.py index 3034e9a5..59b716c1 100755 --- a/utils/codegen/gen-controls.py +++ b/utils/codegen/gen-controls.py @@ -71,7 +71,7 @@ def main(argv): ctrls = controls.setdefault(vendor, []) for i, ctrl in enumerate(data['controls']): - ctrl = Control(*ctrl.popitem(), vendor) + ctrl = Control(*ctrl.popitem(), vendor, args.mode) ctrls.append(extend_control(ctrl, i, ranges)) # Sort the vendors by range numerical value |