Daniel Lezcano 2e38a2a981 thermal/core: Add a generic thermal_zone_set_trip() function
The thermal zone ops defines a set_trip callback where we can invoke
the backend driver to set an interrupt for the next trip point
temperature being crossed the way up or down, or setting the low level
with the hysteresis.

The ops is only called from the thermal sysfs code where the userspace
has the ability to modify a trip point characteristic.

With the effort of encapsulating the thermal framework core code,
let's create a thermal_zone_set_trip() which is the writable side of
the thermal_zone_get_trip() and put there all the ops encapsulation.

Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Link: https://lore.kernel.org/r/20221003092602.1323944-4-daniel.lezcano@linaro.org
2023-01-06 14:14:47 +01:00
..
2022-12-15 10:21:10 -08:00
2022-12-20 08:32:11 -06:00
2022-12-21 09:37:14 -08:00
2022-11-24 23:12:19 +11:00
2022-12-23 11:39:18 -08:00
2022-12-22 11:22:31 -08:00
2022-12-13 15:47:48 -08:00
2022-12-21 09:41:28 -08:00
2022-12-22 11:22:31 -08:00