]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
thermal: intel: int340x_thermal: Use thermal zone accessor functions
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 5 Mar 2024 11:32:09 +0000 (12:32 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 5 Mar 2024 20:38:22 +0000 (21:38 +0100)
Make int340x_thermal use the dedicated accessor functions for the
thermal zone device object address and the thermal zone type string.

This is requisite for future thermal core improvements.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Reviewed-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c

index e8182f0929d3ddec43bdf8fb12bcd6f1d5a09d0e..400fde7cb3b1e438743e5fcec7a4675c902655d2 100644 (file)
@@ -58,7 +58,8 @@ static int int340x_thermal_set_trip_temp(struct thermal_zone_device *zone,
 
 static void int340x_thermal_critical(struct thermal_zone_device *zone)
 {
-       dev_dbg(&zone->device, "%s: critical temperature reached\n", zone->type);
+       dev_dbg(thermal_zone_device(zone), "%s: critical temperature reached\n",
+               thermal_zone_device_type(zone));
 }
 
 static inline void *int_to_trip_priv(int i)