diff options
author | Jiri Pirko <jiri@nvidia.com> | 2024-03-06 15:07:39 +0300 |
---|---|---|
committer | Sasha Levin <sashal@kernel.org> | 2024-03-27 01:16:55 +0300 |
commit | cfad6598c4c916fb9236a3d85384f999f91e7026 (patch) | |
tree | da0ac1e3ac11e96a521cac43f4c6beea2aad0047 /Documentation | |
parent | 35fd74e345a06506b4b8bc2847722c8870538585 (diff) | |
download | linux-cfad6598c4c916fb9236a3d85384f999f91e7026.tar.xz |
dpll: spec: use proper enum for pin capabilities attribute
[ Upstream commit 5c497a64820ef9f10962a9c37607df45d6395fa5 ]
The enum is defined, however the pin capabilities attribute does
refer to it. Add this missing enum field.
This fixes ynl cli output:
Example current output:
$ sudo ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/dpll.yaml --do pin-get --json '{"id": 0}'
{'capabilities': 4,
...
Example new output:
$ sudo ./tools/net/ynl/cli.py --spec Documentation/netlink/specs/dpll.yaml --do pin-get --json '{"id": 0}'
{'capabilities': {'state-can-change'},
...
Fixes: 3badff3a25d8 ("dpll: spec: Add Netlink spec in YAML")
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Jakub Kicinski <kuba@kernel.org>
Link: https://lore.kernel.org/r/20240306120739.1447621-1-jiri@resnulli.us
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/netlink/specs/dpll.yaml | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/netlink/specs/dpll.yaml b/Documentation/netlink/specs/dpll.yaml index 3dcc9ece272a..d0c821c20203 100644 --- a/Documentation/netlink/specs/dpll.yaml +++ b/Documentation/netlink/specs/dpll.yaml @@ -274,6 +274,7 @@ attribute-sets: - name: capabilities type: u32 + enum: pin-capabilities - name: parent-device type: nest |