mlxsw: core_thermal: Simplify transceiver module get_temp() callback
authorIdo Schimmel <idosch@nvidia.com>
Fri, 31 Mar 2023 14:17:32 +0000 (16:17 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 2 Apr 2023 12:42:30 +0000 (13:42 +0100)
commitcc19439f703b8c979133bf91690d6c0dffd8dc46
tree2306e4094c3cbf109eecdc5a829e48e414cddd57
parentc1536d856e18c6d37a6b7d1fc68d3d27aa7f8e9d
mlxsw: core_thermal: Simplify transceiver module get_temp() callback

The get_temp() callback of a thermal zone associated with a transceiver
module no longer needs to read the temperature thresholds of the module.
Therefore, simplify the callback by only reading the temperature.

Signed-off-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c