]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: stm32: Rework sensor mode management
authorPascal Paillet <p.paillet@st.com>
Fri, 10 Jan 2020 10:16:01 +0000 (11:16 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 27 Jan 2020 14:40:07 +0000 (15:40 +0100)
commit7853898cd90acaa4955894f2d8b8297ac6b88c7a
tree1abbbd926c390dd2784c0a2715b86ceb215d86a6
parent4dc17cf82a07e9980b0e7a4663920fcc417668f0
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: Pascal Paillet <p.paillet@st.com>
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Link: https://lore.kernel.org/r/20200110101605.24984-3-p.paillet@st.com
drivers/thermal/st/stm_thermal.c