diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-02-06 00:20:32 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2024-02-23 20:24:48 +0300 |
commit | 62dd17846d33e75e623965e281e246dff0e01309 (patch) | |
tree | 18186918cd8431f34e50964a91de25911d2b1251 /scripts/gdb/linux/modules.py | |
parent | 75fb8714728460c4584c72e2f6410944a0b2cc44 (diff) | |
download | linux-62dd17846d33e75e623965e281e246dff0e01309.tar.xz |
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/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions