Skip to content

Commit 7dafcc4

Browse files
Jiri Pirkokuba-moo
authored andcommitted
mlxsw: core: use PSID string define in devlink info
Instead of having the string spelled out in the driver, use the global define with the same value. Signed-off-by: Jiri Pirko <[email protected]> Reviewed-by: Ido Schimmel <[email protected]> Signed-off-by: Jakub Kicinski <[email protected]>
1 parent f55c998 commit 7dafcc4

File tree

1 file changed

+3
-1
lines changed
  • drivers/net/ethernet/mellanox/mlxsw

1 file changed

+3
-1
lines changed

drivers/net/ethernet/mellanox/mlxsw/core.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1444,7 +1444,9 @@ mlxsw_devlink_info_get(struct devlink *devlink, struct devlink_info_req *req,
14441444
if (err)
14451445
return err;
14461446

1447-
err = devlink_info_version_fixed_put(req, "fw.psid", fw_info_psid);
1447+
err = devlink_info_version_fixed_put(req,
1448+
DEVLINK_INFO_VERSION_GENERIC_FW_PSID,
1449+
fw_info_psid);
14481450
if (err)
14491451
return err;
14501452

0 commit comments

Comments
 (0)