OSDN Git Service

thermal/drivers/hisi: Use round up step value
authorKevin Wangtao <kevin.wangtao@linaro.org>
Thu, 19 Oct 2017 17:05:57 +0000 (19:05 +0200)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 1 Nov 2017 02:32:17 +0000 (19:32 -0700)
commite42bbe1160c3b5fcab8d5afcc49d8647adff6c9c
tree2cb32a560ad38c99675e0e30132a411b19c52691
parent943c0f6abfb6010065b80943356975885a33233c
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>
drivers/thermal/hisi_thermal.c