From: Eduardo Valentin <edubezval@gmail.com>
To: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Cc: rui.zhang@intel.com, linux-pm@vger.kernel.org, linux-sh@vger.kernel.org
Subject: Re: [PATCH 2/2] thermal: rcar: change type of ctemp in rcar_thermal_update_temp()
Date: Tue, 6 Jan 2015 09:03:24 -0400 [thread overview]
Message-ID: <20150106130321.GA4661@developer> (raw)
In-Reply-To: <1420538528-5236-3-git-send-email-yoshihiro.shimoda.uh@renesas.com>
[-- Attachment #1: Type: text/plain, Size: 1347 bytes --]
Shimoda-san,
On Tue, Jan 06, 2015 at 07:02:08PM +0900, Yoshihiro Shimoda wrote:
> Since the ctemp is used for rcar_thermal_write() in
> rcar_thermal_update_temp(), the type of ctemp should be "u32" instead
> of "int".
In your V2, can you please include in your description that you are also
updating the helper variables 'old' and 'new'?
The description does not mention it.
>
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> ---
> drivers/thermal/rcar_thermal.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c
> index bbdf64e..6dcead1 100644
> --- a/drivers/thermal/rcar_thermal.c
> +++ b/drivers/thermal/rcar_thermal.c
> @@ -63,7 +63,7 @@ struct rcar_thermal_priv {
> struct mutex lock;
> struct list_head list;
> int id;
> - int ctemp;
> + u32 ctemp;
> };
>
> #define rcar_thermal_for_each_priv(pos, common) \
> @@ -145,7 +145,7 @@ static int rcar_thermal_update_temp(struct rcar_thermal_priv *priv)
> {
> struct device *dev = rcar_priv_to_dev(priv);
> int i;
> - int ctemp, old, new;
> + u32 ctemp, old, new;
But you also update them, as necessary.
> int ret = -EINVAL;
>
> mutex_lock(&priv->lock);
> --
> 1.7.9.5
>
BR,
Eduardo Valentin
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 473 bytes --]
next prev parent reply other threads:[~2015-01-06 13:03 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-06 10:02 [PATCH 0/2] thermal: rcar: minor fixes Yoshihiro Shimoda
2015-01-06 10:02 ` [PATCH 1/2] thermal: rcar: fix ENR register value Yoshihiro Shimoda
2015-01-06 10:53 ` Geert Uytterhoeven
2015-01-06 11:13 ` yoshihiro shimoda
2015-01-06 10:02 ` [PATCH 2/2] thermal: rcar: change type of ctemp in rcar_thermal_update_temp() Yoshihiro Shimoda
2015-01-06 10:55 ` Geert Uytterhoeven
2015-01-06 13:03 ` Eduardo Valentin [this message]
2015-01-07 0:26 ` yoshihiro shimoda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150106130321.GA4661@developer \
--to=edubezval@gmail.com \
--cc=linux-pm@vger.kernel.org \
--cc=linux-sh@vger.kernel.org \
--cc=rui.zhang@intel.com \
--cc=yoshihiro.shimoda.uh@renesas.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).