Commit 913015c6 authored by Yoshihiro Shimoda's avatar Yoshihiro Shimoda Committed by Eduardo Valentin

thermal: rcar: change type of ctemp in rcar_thermal_update_temp()

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: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: default avatarEduardo Valentin <edubezval@gmail.com>
parent 11313746
...@@ -63,7 +63,7 @@ struct rcar_thermal_priv { ...@@ -63,7 +63,7 @@ struct rcar_thermal_priv {
struct mutex lock; struct mutex lock;
struct list_head list; struct list_head list;
int id; int id;
int ctemp; u32 ctemp;
}; };
#define rcar_thermal_for_each_priv(pos, common) \ #define rcar_thermal_for_each_priv(pos, common) \
...@@ -145,7 +145,7 @@ static int rcar_thermal_update_temp(struct rcar_thermal_priv *priv) ...@@ -145,7 +145,7 @@ static int rcar_thermal_update_temp(struct rcar_thermal_priv *priv)
{ {
struct device *dev = rcar_priv_to_dev(priv); struct device *dev = rcar_priv_to_dev(priv);
int i; int i;
int ctemp, old, new; u32 ctemp, old, new;
int ret = -EINVAL; int ret = -EINVAL;
mutex_lock(&priv->lock); mutex_lock(&priv->lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment