ACPI: thermal: Untangle initialization and updates of the passive trip
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 12 Sep 2023 18:43:52 +0000 (20:43 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 26 Sep 2023 15:57:45 +0000 (17:57 +0200)
commit64c512edf97735ecd882b532a5c5351edde39676
tree2120b93e4c69311bbf43849a9b79a271361a7512
parent30f04c7535e464f1824edb02e736a50be018777b
ACPI: thermal: Untangle initialization and updates of the passive trip

Separate the code needed to update the passive trip (in a response to a
notification from the platform firmware) as well as to initialize it
from the code that is only necessary for its 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>
Reviewed-by: Daniel Lezcano <daniel.lezcano@linaro.org>
drivers/acpi/thermal.c