summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2017-08-29 14:15:44 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2017-10-18 16:33:15 +0200
commit4444b32f04d154e58391c8e433e2c58d49b3bb4e (patch)
tree89b5a6519afb0fb4cba576562d3eedb41c51507b
parenta9913de40b99ccff66ca0d47530ee9968e181a90 (diff)
thermal/drivers/hisi: Convert long to int
There is no point to specify the temperature as long variable, the int is enough. Replace all long variables to int, so making the code consistent. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> Reviewed-by: Leo Yan <leo.yan@linaro.org>
-rw-r--r--drivers/thermal/hisi_thermal.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/hisi_thermal.c b/drivers/thermal/hisi_thermal.c
index baa38531d56e..5382073087e4 100644
--- a/drivers/thermal/hisi_thermal.c
+++ b/drivers/thermal/hisi_thermal.c
@@ -85,12 +85,12 @@ static inline int hisi_thermal_step_to_temp(int step)
return HISI_TEMP_BASE + (step * HISI_TEMP_STEP);
}
-static inline long hisi_thermal_temp_to_step(long temp)
+static inline int hisi_thermal_temp_to_step(int temp)
{
return (temp - HISI_TEMP_BASE) / HISI_TEMP_STEP;
}
-static inline long hisi_thermal_round_temp(int temp)
+static inline int hisi_thermal_round_temp(int temp)
{
return hisi_thermal_step_to_temp(
hisi_thermal_temp_to_step(temp));