summaryrefslogtreecommitdiff
path: root/drivers/thermal/thermal_helpers.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-02-06 00:16:59 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-02-23 20:24:47 +0300
commitfcbf8780008609380d2e5b407c5bb7950fff018c (patch)
tree05985385fd1d2a04afae0dd0d60bb105c4a710b8 /drivers/thermal/thermal_helpers.c
parent9686f04a7ba6366dbdbb5609dc26a6282803b888 (diff)
downloadlinux-fcbf8780008609380d2e5b407c5bb7950fff018c.tar.xz
thermal: intel: Discard trip tables after zone registration
Because the thermal core creates and uses its own copy of the trips table passed to thermal_zone_device_register_with_trips(), it is not necessary to hold on to a local copy of it any more after the given thermal zone has been registered. Accordingly, modify Intel thermal drivers to discard the trips tables passed to thermal_zone_device_register_with_trips() after thermal zone registration, for example by storing them in local variables which are automatically discarded when the zone registration is complete. Also make some additional code simplifications unlocked by the above changes. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com> Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'drivers/thermal/thermal_helpers.c')
0 files changed, 0 insertions, 0 deletions