diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2023-03-01 21:14:41 +0100 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-03-03 20:45:03 +0100 |
commit | dbb0ea153401d5191b523837f14bd7f060f9ed5f (patch) | |
tree | 5f35dd48129cfd31c1942e1e652a1a707416a873 /drivers/net/ethernet/mellanox/mlxsw | |
parent | 3034f859b90d49ee661fad4d23593589d0d37779 (diff) | |
download | linux-stable-dbb0ea153401d5191b523837f14bd7f060f9ed5f.tar.gz linux-stable-dbb0ea153401d5191b523837f14bd7f060f9ed5f.tar.bz2 linux-stable-dbb0ea153401d5191b523837f14bd7f060f9ed5f.zip |
thermal: Use thermal_zone_device_type() accessor
Replace the accesses to 'tz->type' by its accessor version in order to
self-encapsulate the thermal_zone_device structure.
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Reviewed-by: Ido Schimmel <idosch@nvidia.com> #mlxsw
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> #MediaTek LVTS
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/core_thermal.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c b/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c index 722e4a40afef..b0a169e68df9 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c +++ b/drivers/net/ethernet/mellanox/mlxsw/core_thermal.c @@ -177,7 +177,7 @@ mlxsw_thermal_module_trips_update(struct device *dev, struct mlxsw_core *core, if (crit_temp > emerg_temp) { dev_warn(dev, "%s : Critical threshold %d is above emergency threshold %d\n", - tz->tzdev->type, crit_temp, emerg_temp); + thermal_zone_device_type(tz->tzdev), crit_temp, emerg_temp); return 0; } |