Skip to content

Commit acf35a4

Browse files
jpirkodavem330
authored andcommitted
mlxsw: reg: Fix max temperature getting
Fix copy & paste error in MTPM unpack helper. Fixes: 85926f8 ("mlxsw: reg: Add definition of temperature management registers") Signed-off-by: Jiri Pirko <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 9ad321b commit acf35a4

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mellanox/mlxsw/reg.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2684,7 +2684,7 @@ static inline void mlxsw_reg_mtmp_unpack(char *payload, unsigned int *p_temp,
26842684
*p_temp = MLXSW_REG_MTMP_TEMP_TO_MC(temp);
26852685
}
26862686
if (p_max_temp) {
2687-
temp = mlxsw_reg_mtmp_temperature_get(payload);
2687+
temp = mlxsw_reg_mtmp_max_temperature_get(payload);
26882688
*p_max_temp = MLXSW_REG_MTMP_TEMP_TO_MC(temp);
26892689
}
26902690
if (sensor_name)

0 commit comments

Comments
 (0)