Skip to content

Commit

Permalink
thermal: rcar: fixup the unit of temperature
Browse files Browse the repository at this point in the history
The unit of temperature is Milli-Celsius.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Zhang Rui <rui.zhang@intel.com>
  • Loading branch information
Kuninori Morimoto authored and Zhang Rui committed Nov 26, 2012
1 parent 4ba115b commit c499703
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/thermal/rcar_thermal.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ struct rcar_thermal_priv {
u32 comp;
};

#define MCELSIUS(temp) ((temp) * 1000)

/*
* basic functions
*/
Expand Down Expand Up @@ -169,7 +171,7 @@ static int rcar_thermal_get_temp(struct thermal_zone_device *zone,
}
}

*temp = tmp;
*temp = MCELSIUS(tmp);
return 0;
}

Expand Down

0 comments on commit c499703

Please sign in to comment.