]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4b73d513e261560407657d87cab88f97c2936c7c
tree165357ec9f04d09b1844fab87f0657b3e1d7a144
parent1c27b13fd95ce0075e2478f732ddbe27a80bfb2a
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