thermal/drivers/mellanox: Use generic thermal_zone_get_trip() function
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 14 Oct 2022 07:32:51 +0000 (09:32 +0200)
committerDaniel Lezcano <daniel.lezcano@kernel.org>
Fri, 6 Jan 2023 13:14:48 +0000 (14:14 +0100)
commit44a29a4dab73411671e0b84817a5f07e291b1501
treedcb6106cb2a065d71735d2b5c93de84cca25c04c
parent3d2f20ad46f83b333025f5e8e4afc34be8f13c4c
thermal/drivers/mellanox: Use generic thermal_zone_get_trip() function

The thermal framework gives the possibility to register the trip
points with the thermal zone. When that is done, no get_trip_* ops are
needed and they can be removed.

Convert ops content logic into generic trip points and register them with the
thermal zone.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/20221014073253.3719911-2-daniel.lezcano@linaro.org
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c