aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/sancov_plugin.c
diff options
context:
space:
mode:
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-02-05 22:20:32 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2024-02-23 18:24:48 +0100
commit62dd17846d33e75e623965e281e246dff0e01309 (patch)
tree18186918cd8431f34e50964a91de25911d2b1251 /scripts/gcc-plugins/sancov_plugin.c
parent75fb8714728460c4584c72e2f6410944a0b2cc44 (diff)
thermal: intel: Adjust ops handling during thermal zone registration
Because thermal zone operations are now stored directly in struct thermal_zone_device, thermal zone creators can discard the operations structure after the zone registration is complete, or it can be made read-only. Accordingly, make int340x_thermal_zone_add() use a local variable to represent thermal zone operations, so it is freed automatically upon the function exit, and make the other Intel thermal drivers use const zone operations structures. Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Reviewed-by: Stanislaw Gruszka <stanislaw.gruszka@linux.intel.com> Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'scripts/gcc-plugins/sancov_plugin.c')
0 files changed, 0 insertions, 0 deletions