diff options
author | 2024-02-05 22:20:32 +0100 | |
---|---|---|
committer | 2024-02-23 18:24:48 +0100 | |
commit | 62dd17846d33e75e623965e281e246dff0e01309 (patch) | |
tree | 18186918cd8431f34e50964a91de25911d2b1251 /scripts/generate_rust_analyzer.py | |
parent | thermal: ACPI: Constify acpi_thermal_zone_ops (diff) | |
download | linux-rng-62dd17846d33e75e623965e281e246dff0e01309.tar.xz linux-rng-62dd17846d33e75e623965e281e246dff0e01309.zip |
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/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions