ACPI: thermal: Untangle initialization and updates of active trips
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 20 Sep 2023 12:35:46 +0000 (14:35 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 26 Sep 2023 15:58:03 +0000 (17:58 +0200)
commitcdfe09df04a0706f3926c0643ba2218fae04003b
tree9a88759624ceb20c23d5e8811d58421afc54429a
parent64c512edf97735ecd882b532a5c5351edde39676
ACPI: thermal: Untangle initialization and updates of active trips

Separate the code needed to update active trips (in a response to a
notification from the platform firmware) as well as to initialize them
from the code that is only necessary for their initialization and
cleanly divide it into functions that each carry out a specific action.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/acpi/thermal.c