OSDN Git Service

mlxsw: core_thermal: Add line card id prefix to line card thermal zone name
authorVadim Pasternak <vadimp@nvidia.com>
Wed, 13 Apr 2022 15:17:31 +0000 (18:17 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Apr 2022 10:06:13 +0000 (11:06 +0100)
commit6d94449a7d7dca9d4b9b5a2792db537b2b69b4b7
tree165357ec9f04d09b1844fab87f0657b3e1d7a144
parentef0df4fa324af23a5b55d3518f5799c87b6b665a
mlxsw: core_thermal: Add line card id prefix to line card thermal zone name

Add prefix "lc#n" to thermal zones associated with the thermal objects
found on line cards.

For example thermal zone for module #9 located at line card #7 will
have type:
mlxsw-lc7-module9.
And thermal zone for gearbox #3 located at line card #5 will have type:
mlxsw-lc5-gearbox3.

Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c