Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752690AbdIBDmH (ORCPT ); Fri, 1 Sep 2017 23:42:07 -0400 Received: from mail-pg0-f44.google.com ([74.125.83.44]:34955 "EHLO mail-pg0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751464AbdIBDmF (ORCPT ); Fri, 1 Sep 2017 23:42:05 -0400 X-Google-Smtp-Source: ADKCNb41PcgMNI2Xo+TMmn5ECEDvbA7sDx9kVGcWUNVRC4wF6sG2/70essIL6jacFUKE8p5B5VvUiA== Date: Sat, 2 Sep 2017 11:41:56 +0800 From: Leo Yan To: Daniel Lezcano Cc: rui.zhang@intel.com, edubezval@gmail.com, linux-pm@vger.kernel.org, kevin.wangtao@linaro.org, open list Subject: Re: [PATCH 11/13] thermal/drivers/hisi: Convert long to int Message-ID: <20170902034156.GD3841@leoy-linaro> References: <1504082857-21702-1-git-send-email-daniel.lezcano@linaro.org> <1504082857-21702-11-git-send-email-daniel.lezcano@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1504082857-21702-11-git-send-email-daniel.lezcano@linaro.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1151 Lines: 36 On Wed, Aug 30, 2017 at 10:47:35AM +0200, Daniel Lezcano wrote: > 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 Reviewed-by: Leo Yan > --- > drivers/thermal/hisi_thermal.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/thermal/hisi_thermal.c b/drivers/thermal/hisi_thermal.c > index 68b625c..9eee82b 100644 > --- a/drivers/thermal/hisi_thermal.c > +++ b/drivers/thermal/hisi_thermal.c > @@ -83,12 +83,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)); > -- > 2.7.4 >