OSDN Git Service

mlxsw: core_thermal: Use exact name of cooling devices for binding
authorVadim Pasternak <vadimp@nvidia.com>
Wed, 13 Apr 2022 15:17:32 +0000 (18:17 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Apr 2022 10:06:13 +0000 (11:06 +0100)
commit739d56bc635e9ba642777445d8c9c37e4a35ba3c
tree3a0ec58f6ac562ad30af028a29b7787c50e0e28f
parent6d94449a7d7dca9d4b9b5a2792db537b2b69b4b7
mlxsw: core_thermal: Use exact name of cooling devices for binding

Modular system supports additional cooling devices "mlxreg_fan1",
"mlxreg_fan2", etcetera. Thermal zones in "mlxsw" driver should be
bound to the same device as before called "mlxreg_fan". Used exact
match for cooling device name to avoid binding to new additional
cooling devices.

Signed-off-by: Vadim Pasternak <vadimp@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