Message ID | dbbe1713c4a23a06a297b8790eccf757f68d5d62.1692882703.git.petrm@nvidia.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 3fc134a07438055fc93ce1bbacf2702ddd09500c |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | mlxsw: Assorted fixes | expand |
diff --git a/drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c b/drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c index 70735068cf29..0fd290d776ff 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c +++ b/drivers/net/ethernet/mellanox/mlxsw/core_hwmon.c @@ -405,7 +405,8 @@ mlxsw_hwmon_module_temp_label_show(struct device *dev, container_of(attr, struct mlxsw_hwmon_attr, dev_attr); return sprintf(buf, "front panel %03u\n", - mlxsw_hwmon_attr->type_index); + mlxsw_hwmon_attr->type_index + 1 - + mlxsw_hwmon_attr->mlxsw_hwmon_dev->sensor_count); } static ssize_t