summaryrefslogtreecommitdiffstats
path: root/drivers/power
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-03-27 13:46:13 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2023-03-27 13:46:13 +0200
commitce07727aff5bec20f29abe9263a51ed6a355b228 (patch)
tree6426666f65b35ced021c82458d9463f19bec2f4a /drivers/power
parentMerge branch 'thermal-acpi' (diff)
parentMerge branch 'thermal-core' into thermal (diff)
downloadlinux-ce07727aff5bec20f29abe9263a51ed6a355b228.tar.xz
linux-ce07727aff5bec20f29abe9263a51ed6a355b228.zip
Merge back thermal control material for 6.4-rc1.
Diffstat (limited to 'drivers/power')
-rw-r--r--drivers/power/supply/power_supply_core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/power/supply/power_supply_core.c b/drivers/power/supply/power_supply_core.c
index f3d7c1da299f..5bf35025cd90 100644
--- a/drivers/power/supply/power_supply_core.c
+++ b/drivers/power/supply/power_supply_core.c
@@ -1142,7 +1142,7 @@ static int power_supply_read_temp(struct thermal_zone_device *tzd,
int ret;
WARN_ON(tzd == NULL);
- psy = tzd->devdata;
+ psy = thermal_zone_device_priv(tzd);
ret = power_supply_get_property(psy, POWER_SUPPLY_PROP_TEMP, &val);
if (ret)
return ret;