thermal: Use thermal_zone_device_type() accessor
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Wed, 1 Mar 2023 20:14:41 +0000 (21:14 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 3 Mar 2023 19:45:03 +0000 (20:45 +0100)
commitdbb0ea153401d5191b523837f14bd7f060f9ed5f
tree5f35dd48129cfd31c1942e1e652a1a707416a873
parent3034f859b90d49ee661fad4d23593589d0d37779
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>
drivers/net/ethernet/mellanox/mlxsw/core_thermal.c
drivers/thermal/mediatek/lvts_thermal.c
drivers/thermal/ti-soc-thermal/ti-thermal-common.c