Skip to content
Commit d4a7e053 authored by Pascal Paillet's avatar Pascal Paillet Committed by Daniel Lezcano
Browse files

thermal: stm32: Rework sensor mode management



Be sure get_temp returns an error while disabling or enabling the device.
Set THERMAL_DEVICE_ENABLED state at the end of power on function.
Set THERMAL_DEVICE_DISABLED state at the beginning of power off function.

Signed-off-by: default avatarPascal Paillet <p.paillet@st.com>
Signed-off-by: default avatarDaniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200110101605.24984-3-p.paillet@st.com
parent d401652c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment