BACKPORT: 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)
committerKevin Wangtao <kevin.wangtao@hisilicon.com>
Fri, 26 Jan 2018 02:00:57 +0000 (10:00 +0800)
commite4d15c6eebe327d5bf58d3b54e52f91ff77bcfc3
tree8d20b3749dbaf6d1813e3188464793ead97e7e45
parent9bef0133e6819289cacecb10efa872d398069447
BACKPORT: 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.

Change-Id: If40b040a6b54187065b1d99c40b203f96fd5840e
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>
(cherry picked from commit 943c0f6abfb6010065b80943356975885a33233c)
Signed-off-by: Kevin Wangtao <kevin.wangtao@hisilicon.com>
drivers/thermal/hisi_thermal.c