ACPI: thermal: Eliminate struct acpi_thermal_state_flags
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Sun, 4 Jun 2023 12:18:05 +0000 (14:18 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 12 Jun 2023 17:35:15 +0000 (19:35 +0200)
commit7266c88cbaa3deb0764c6c667d72f393ea98061a
tree75aaf14f275cf50de2f24e290a336a86ac42a774
parent607d265fc1ab0639085016e170ef4e300d187a77
ACPI: thermal: Eliminate struct acpi_thermal_state_flags

Notice that the enabled flag is only needed for active trip points,
so drop struct acpi_thermal_state_flags, add a simple "bool valid" field
to the definitions of all trip point structures instead of flags and
add a "bool enabled" field to struct acpi_thermal_active.

Adjust the code using the modified structures accordingly.

No intentional functional impact.

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