diff options
author | 2020-01-10 11:16:01 +0100 | |
---|---|---|
committer | 2020-01-27 15:40:07 +0100 | |
commit | d4a7e0538fe957fc78187468fa404060da7fa6f4 (patch) | |
tree | 1abbbd926c390dd2784c0a2715b86ceb215d86a6 /drivers/usb/cdns3/cdns3-imx.c | |
parent | thermal: stm32: Fix icifr register name (diff) | |
download | wireguard-linux-d4a7e0538fe957fc78187468fa404060da7fa6f4.tar.xz wireguard-linux-d4a7e0538fe957fc78187468fa404060da7fa6f4.zip |
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
Diffstat (limited to 'drivers/usb/cdns3/cdns3-imx.c')
0 files changed, 0 insertions, 0 deletions