]> git.baikalelectronics.ru Git - kernel.git/commit
thermal: stm32: Improve temperature computing
authorPascal Paillet <p.paillet@st.com>
Fri, 10 Jan 2020 10:16:04 +0000 (11:16 +0100)
committerDaniel Lezcano <daniel.lezcano@linaro.org>
Mon, 27 Jan 2020 14:40:21 +0000 (15:40 +0100)
commit10d8aea5a2c701c9e03bc18b8f179eafcff300e5
treea5c74bd3d336b69ebf0838e0253263ffda8bac2f
parent839700d093cc8163f43ec1eecb7b5d68e068cfb7
thermal: stm32: Improve temperature computing

Change the way of computing to avoid rounds by 1 or 2 degrees.
Also simplify the sampling time management that is hard-coded
to maximum value during probe.

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-6-p.paillet@st.com
drivers/thermal/st/stm_thermal.c