diff options
author | 2024-02-22 18:15:39 +0100 | |
---|---|---|
committer | 2024-02-23 18:24:47 +0100 | |
commit | 9686f04a7ba6366dbdbb5609dc26a6282803b888 (patch) | |
tree | e279aaa728f2ade949fd64acae49b58ad1bece78 /scripts/generate_rust_analyzer.py | |
parent | thermal: core: Store zone trips table in struct thermal_zone_device (diff) | |
download | linux-rng-9686f04a7ba6366dbdbb5609dc26a6282803b888.tar.xz linux-rng-9686f04a7ba6366dbdbb5609dc26a6282803b888.zip |
thermal: ACPI: Discard trips table 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 the ACPI thermal driver to store the trips table
passed to thermal_zone_device_register_with_trips() in a local variable
which is automatically discarded when acpi_thermal_add() returns to
its caller.
Also make some additional code simplifications unlocked by the above
change.
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 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions