projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f55c998
)
mlxsw: core: use PSID string define in devlink info
author
Jiri Pirko
<jiri@nvidia.com>
Wed, 26 May 2021 10:45:09 +0000
(12:45 +0200)
committer
Jakub Kicinski
<kuba@kernel.org>
Thu, 27 May 2021 21:51:18 +0000
(14:51 -0700)
Instead of having the string spelled out in the driver, use the global
define with the same value.
Signed-off-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/core.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/mellanox/mlxsw/core.c
b/drivers/net/ethernet/mellanox/mlxsw/core.c
index
b543d4e
..
e775f08
100644
(file)
--- a/
drivers/net/ethernet/mellanox/mlxsw/core.c
+++ b/
drivers/net/ethernet/mellanox/mlxsw/core.c
@@
-1444,7
+1444,9
@@
mlxsw_devlink_info_get(struct devlink *devlink, struct devlink_info_req *req,
if (err)
return err;
- err = devlink_info_version_fixed_put(req, "fw.psid", fw_info_psid);
+ err = devlink_info_version_fixed_put(req,
+ DEVLINK_INFO_VERSION_GENERIC_FW_PSID,
+ fw_info_psid);
if (err)
return err;