Skip to content

Commit

Permalink
thermal: rcar: change type of ctemp in rcar_thermal_update_temp()
Browse files Browse the repository at this point in the history
Since the ctemp is used for rcar_thermal_write() in
rcar_thermal_update_temp(), the type of 'ctemp' should be "u32" instead
of "int". This patch also changes type of the helper variables 'old'
and 'new'.

Acked-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Eduardo Valentin <edubezval@gmail.com>
  • Loading branch information
Yoshihiro Shimoda authored and Eduardo Valentin committed Jan 7, 2015
1 parent 1131374 commit 913015c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/thermal/rcar_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down Expand Up @@ -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;
int ret = -EINVAL;

mutex_lock(&priv->lock);
Expand Down

0 comments on commit 913015c

Please sign in to comment.