net/mlx5: Update the driver with the recent thermal changes
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Thu, 25 May 2023 14:01:28 +0000 (16:01 +0200)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 26 Jun 2023 10:03:14 +0000 (12:03 +0200)
commita5639fade0cfe5a45584f2770811034dab43baaa
tree55687b62e8726ae977c87ae47805e5908c300eba
parent62a094e757a75b5d0a63dfe17a7c17ab2da330fd
net/mlx5: Update the driver with the recent thermal changes

The thermal framework is migrating to the generic trip points. The set
of changes also implies a self-encapsulation of the thermal zone
device structure where the internals are no longer directly accessible
but with accessors.

Use the new API instead, so the next changes can be pushed in the
thermal framework without this driver failing to compile.

No functional changes intended.

Cc: Sandipan Patra <spatra@nvidia.com>
Cc: Gal Pressman <gal@nvidia.com>
Cc: Saeed Mahameed <saeedm@nvidia.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20230525140135.3589917-2-daniel.lezcano@linaro.org
drivers/net/ethernet/mellanox/mlx5/core/thermal.c