ACPI: thermal: Eliminate code duplication from acpi_thermal_notify()
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 17 Aug 2023 09:25:29 +0000 (11:25 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 17 Aug 2023 09:25:29 +0000 (11:25 +0200)
commit4ab4b3b11dca4cda61b38147f4dd81b1b7b39e95
tree9299efb7f8c30dc7394895cf8e7c2eb676567e9a
parent2a74c4aca1d70c4ec8104997470fda2fed5de322
ACPI: thermal: Eliminate code duplication from acpi_thermal_notify()

Move the acpi_bus_generate_netlink_event() invocation into
acpi_thermal_trips_update() which allows the code duplication in
acpi_thermal_notify() to be cleaned up, but for this purpose the
event value needs to be passed to acpi_thermal_trips_update() and
from there to acpi_thermal_adjust_thermal_zone() which has to
determine the flag value for __acpi_thermal_trips_update() by
itself.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/thermal.c