diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2017-10-19 19:05:53 +0200 |
---|---|---|
committer | Eduardo Valentin <edubezval@gmail.com> | 2017-10-31 19:32:16 -0700 |
commit | bc02ef6d98a601a39f735cbbb67807fb752b5138 (patch) | |
tree | 58b522ff7234875076a238db165a15276b727dc7 /drivers/thermal | |
parent | 609f26dcbb340d7d6b30b1951c8b525611a97c20 (diff) | |
download | linux-bc02ef6d98a601a39f735cbbb67807fb752b5138.tar.bz2 |
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>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
Diffstat (limited to 'drivers/thermal')
-rw-r--r-- | drivers/thermal/hisi_thermal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/thermal/hisi_thermal.c b/drivers/thermal/hisi_thermal.c index 0b1f56a81b9f..30bc69921dca 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)); |