summaryrefslogtreecommitdiff
path: root/drivers/thermal/broadcom/ns-thermal.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-03-27 14:46:13 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-03-27 14:46:13 +0300
commitce07727aff5bec20f29abe9263a51ed6a355b228 (patch)
tree6426666f65b35ced021c82458d9463f19bec2f4a /drivers/thermal/broadcom/ns-thermal.c
parent6babf38d894bec696761c10fbfccafceae76f4eb (diff)
parent2b6db9efa50799fa75ce609f24b355f29504bd9a (diff)
downloadlinux-ce07727aff5bec20f29abe9263a51ed6a355b228.tar.xz
Merge back thermal control material for 6.4-rc1.
Diffstat (limited to 'drivers/thermal/broadcom/ns-thermal.c')
-rw-r--r--drivers/thermal/broadcom/ns-thermal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/broadcom/ns-thermal.c b/drivers/thermal/broadcom/ns-thermal.c
index 07a8a3f49bd0..d255aa879fc0 100644
--- a/drivers/thermal/broadcom/ns-thermal.c
+++ b/drivers/thermal/broadcom/ns-thermal.c
@@ -16,7 +16,7 @@
static int ns_thermal_get_temp(struct thermal_zone_device *tz, int *temp)
{
- void __iomem *pvtmon = tz->devdata;
+ void __iomem *pvtmon = thermal_zone_device_priv(tz);
int offset = thermal_zone_get_offset(tz);
int slope = thermal_zone_get_slope(tz);
u32 val;