]> asedeno.scripts.mit.edu Git - linux.git/commit
thermal/drivers/hisi: Move the clk setup in the corresponding functions
authorKevin Wangtao <kevin.wangtao@linaro.org>
Thu, 19 Oct 2017 17:05:56 +0000 (19:05 +0200)
committerEduardo Valentin <edubezval@gmail.com>
Wed, 1 Nov 2017 02:32:17 +0000 (19:32 -0700)
commit943c0f6abfb6010065b80943356975885a33233c
tree35368fe70c17db3f7c6eed2001da450668f3a495
parentcc1ab38d2b2ad3290426c2234cf83e7a323554c7
thermal/drivers/hisi: Move the clk setup in the corresponding functions

The sensor's clock is enabled and disabled outside of the probe and
disable function. Moving the corresponding action in the
hisi_thermal_setup() and hisi_thermal_disable_sensor(), factors out
some lines of code and makes the code more symmetric.

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