ACPI: thermal: Drop valid flag from struct acpi_thermal_trip
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 20 Sep 2023 13:03:46 +0000 (15:03 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 26 Sep 2023 15:58:59 +0000 (17:58 +0200)
commit058f5e407deb8d21b0a04e50e8efbd25b1fcbd1b
treeb048c40fec1593bf2698407c93f9e1491ac9b2f7
parent4175a24f01eb4bfde7d57a9a3ea254649f440034
ACPI: thermal: Drop valid flag from struct acpi_thermal_trip

Notice that the valid flag in struct acpi_thermal_trip is in fact
redundant, because the temperature field of invalid trips is always
equal to THERMAL_TEMP_INVALID, so drop it from there and adjust the
code accordingly.

No intentional functional impact.

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