thermal: stm32: Handle multiple trip points
authorPascal Paillet <p.paillet@st.com>
Fri, 10 Jan 2020 10:16:03 +0000 (11:16 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 27 Jan 2020 14:40:16 +0000 (15:40 +0100)
commitdd4c3919a83074683aab3c1950c69e1131f3c46e
tree0186fda2678f7fc7fe2c43497d764d571d090672
parent1f64fa365148f003e39b28a86ce3ada020ea3eec
thermal: stm32: Handle multiple trip points

Let the thermal framework handle the trip points instead
of custom code inside the driver. This is backward compatible,
simplifies the driver and offers the possibility to the user
to set any trip point he needs.

stm_thermal_set_trips callback that is registered to
set_trips ops to handle the low and high thresholds and replaces
stm_thermal_set_threshold and stm_thermal_update_threshold functions.
modify irq enable to handle the thresholds.

Signed-off-by: Pascal Paillet <p.paillet@st.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200110101605.24984-5-p.paillet@st.com
drivers/thermal/st/stm_thermal.c