thermal/drivers/int3400: Use thermal zone device wrappers
authorDaniel Lezcano <daniel.lezcano@linaro.org>
Fri, 7 Jul 2023 20:37:30 +0000 (22:37 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Fri, 14 Jul 2023 18:46:02 +0000 (20:46 +0200)
commit12ad93ab6eeb0c30dbcb5df7f72415a092f6f191
tree863f03fbca6f298ca61fd0d2aa0fde0f24a554e7
parent06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5
thermal/drivers/int3400: Use thermal zone device wrappers

Use the thermal core API to access the thermal zone "type" field
instead of directly using the structure field.  While here, remove
access to the temperature field, as this driver is reporting fake
temperature, which can be replaced with INT3400_FAKE_TEMP. Also
replace hardcoded 20C with INT3400_FAKE_TEMP

Acked-by: srinivas pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/thermal/intel/int340x_thermal/int3400_thermal.c