diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-03-27 13:46:13 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2023-03-27 13:46:13 +0200 |
commit | ce07727aff5bec20f29abe9263a51ed6a355b228 (patch) | |
tree | 6426666f65b35ced021c82458d9463f19bec2f4a /drivers/power | |
parent | Merge branch 'thermal-acpi' (diff) | |
parent | Merge branch 'thermal-core' into thermal (diff) | |
download | linux-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.c | 2 |
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; |