]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit315534db0e31453693f193b7bf93d79512677d35
tree0186fda2678f7fc7fe2c43497d764d571d090672
parent0b42f3ef5100bcd8ab21f8a57a435b5ee436f5b5
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