diff options
author | Kevin Wangtao <kevin.wangtao@linaro.org> | 2017-10-19 20:05:57 +0300 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2017-11-01 05:32:17 +0300 |
commit | e42bbe1160c3b5fcab8d5afcc49d8647adff6c9c (patch) | |
tree | 2cb32a560ad38c99675e0e30132a411b19c52691 /drivers/thermal/step_wise.c | |
parent | 943c0f6abfb6010065b80943356975885a33233c (diff) | |
download | linux-e42bbe1160c3b5fcab8d5afcc49d8647adff6c9c.tar.xz |
thermal/drivers/hisi: Use round up step value
Use round up division to ensure the programmed value of threshold and the lag
are not less than what we set, and in order to keep the accuracy while using
round up division, the step value should be a rounded up value. There is
no need to use hisi_thermal_round_temp.
Signed-off-by: Kevin Wangtao <kevin.wangtao@linaro.org>
Tested-by: Daniel Lezcano <daniel.lezcano@linaro.org> # hikey6220
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal/step_wise.c')
0 files changed, 0 insertions, 0 deletions