Skip to content

Commit

Permalink
thermal: stm32: Handle multiple trip points
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Pascal Paillet authored and Daniel Lezcano committed Jan 27, 2020
1 parent 1f64fa3 commit dd4c391
Showing 1 changed file with 86 additions and 212 deletions.
Loading

0 comments on commit dd4c391

Please sign in to comment.