diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-03-31 19:32:43 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-03-31 19:32:43 +0200 |
commit | d4d8516624e1042d33011cf93b6e9c220a22c9f0 (patch) | |
tree | 363a530076d20796032f24cef6774e66e573cd37 /drivers/thermal/st/stm_thermal.c | |
parent | ae817e618d4b5d221daae34d32a39476e4bdcb36 (diff) | |
parent | 85b52122e5426e15602c0b979012e50d7271ea1a (diff) |
Merge back Intel thermal driver changes for 6.4-rc1.
Diffstat (limited to 'drivers/thermal/st/stm_thermal.c')
-rw-r--r-- | drivers/thermal/st/stm_thermal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/st/stm_thermal.c b/drivers/thermal/st/stm_thermal.c index 735401958f01..6f2bad8ef82f 100644 --- a/drivers/thermal/st/stm_thermal.c +++ b/drivers/thermal/st/stm_thermal.c @@ -303,7 +303,7 @@ static int stm_disable_irq(struct stm_thermal_sensor *sensor) static int stm_thermal_set_trips(struct thermal_zone_device *tz, int low, int high) { - struct stm_thermal_sensor *sensor = tz->devdata; + struct stm_thermal_sensor *sensor = thermal_zone_device_priv(tz); u32 itr1, th; int ret; @@ -351,7 +351,7 @@ static int stm_thermal_set_trips(struct thermal_zone_device *tz, int low, int hi /* Callback to get temperature from HW */ static int stm_thermal_get_temp(struct thermal_zone_device *tz, int *temp) { - struct stm_thermal_sensor *sensor = tz->devdata; + struct stm_thermal_sensor *sensor = thermal_zone_device_priv(tz); u32 periods; int freqM, ret; |