]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 Mar 2023 10:49:05 +0000 (12:49 +0200)
commita71f388045edbf6788a61f43e2cdc94b392a4ea3
tree09f579ca015dd817a1dd686faac6d0d2757dd6cf
parent0e60f30e65d350497d640f29028715724b2d9554
thermal/drivers/mellanox: Use generic thermal_zone_get_trip() function

[ Upstream commit 44a29a4dab73411671e0b84817a5f07e291b1501 ]

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
Stable-dep-of: 6d206b1ea9f4 ("mlxsw: core_thermal: Fix fan speed in maximum cooling state")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c