thermal: core: Do not handle trip points with invalid temperature
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Mon, 7 Aug 2023 18:01:24 +0000 (20:01 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 10 Aug 2023 18:57:35 +0000 (20:57 +0200)
commitbc840ea5f9a98cfab61f6f8f70a73dac43db27d0
tree086278355f0dcc5d277dbc66be19b5129c54bbd2
parent1996e9d73217276297ee09c0d57af911c6d468ef
thermal: core: Do not handle trip points with invalid temperature

Trip points with temperature set to THERMAL_TEMP_INVALID are as good as
disabled, so make handle_thermal_trip() ignore them.

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