mlxsw: core: use PSID string define in devlink info
authorJiri Pirko <jiri@nvidia.com>
Wed, 26 May 2021 10:45:09 +0000 (12:45 +0200)
committerJakub 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

index b543d4e..e775f08 100644 (file)
@@ -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;