summaryrefslogtreecommitdiff
path: root/drivers/thermal/max77620_thermal.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/thermal/max77620_thermal.c')
-rw-r--r--drivers/thermal/max77620_thermal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/thermal/max77620_thermal.c b/drivers/thermal/max77620_thermal.c
index 6451a55eb582..bf1679765f1b 100644
--- a/drivers/thermal/max77620_thermal.c
+++ b/drivers/thermal/max77620_thermal.c
@@ -46,7 +46,7 @@ struct max77620_therm_info {
static int max77620_thermal_read_temp(struct thermal_zone_device *tz, int *temp)
{
- struct max77620_therm_info *mtherm = tz->devdata;
+ struct max77620_therm_info *mtherm = thermal_zone_device_priv(tz);
unsigned int val;
int ret;