Skip to content

Commit 53b94f4

Browse files
committed
thermal: intel: int340x_thermal: Use thermal zone accessor functions
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>
1 parent 166d017 commit 53b94f4

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/thermal/intel/int340x_thermal/int340x_thermal_zone.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ static int int340x_thermal_set_trip_temp(struct thermal_zone_device *zone,
5858

5959
static void int340x_thermal_critical(struct thermal_zone_device *zone)
6060
{
61-
dev_dbg(&zone->device, "%s: critical temperature reached\n", zone->type);
61+
dev_dbg(thermal_zone_device(zone), "%s: critical temperature reached\n",
62+
thermal_zone_device_type(zone));
6263
}
6364

6465
static inline void *int_to_trip_priv(int i)

0 commit comments

Comments
 (0)