commit | 4bc5d5ed8ea8fc62ae4f6f455f91bbcf8ca031ab | [log] [tgz] |
---|---|---|
author | Leo Yan <leo.yan@linaro.org> | Tue Jan 05 15:29:46 2016 +0800 |
committer | Leo Yan <leo.yan@linaro.org> | Tue Jan 05 15:29:46 2016 +0800 |
tree | 6c8733b081f22e67aaf5c2dc4e2f6afe33bbc0ff | |
parent | 96a0724cafedc3dd31e96be950bbde50615b78da [diff] |
thermal: hisilicon: increase temperature resolution When calculate temperature, old code firstly do division and then convert to "millicelsius" unit. This will lose resolution and only can read back temperature with "Celsius" unit. So firstly scale step value to "millicelsius" and then do division, so finally we can increase resolution for temperature value. Also refine the calculation from temperature value to step value. Signed-off-by: Leo Yan <leo.yan@linaro.org>