From: Kuninori Morimoto Date: Mon, 26 Nov 2012 02:32:06 +0000 (+0000) Subject: thermal: rcar: fixup the unit of temperature X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c499703e64bef8f2e8ffe9ea7ee63a0a926b5530;p=linux-beck.git thermal: rcar: fixup the unit of temperature The unit of temperature is Milli-Celsius. Signed-off-by: Kuninori Morimoto Signed-off-by: Zhang Rui --- diff --git a/drivers/thermal/rcar_thermal.c b/drivers/thermal/rcar_thermal.c index 81dce23828f3..f2678ff0ed2b 100644 --- a/drivers/thermal/rcar_thermal.c +++ b/drivers/thermal/rcar_thermal.c @@ -43,6 +43,8 @@ struct rcar_thermal_priv { u32 comp; }; +#define MCELSIUS(temp) ((temp) * 1000) + /* * basic functions */ @@ -169,7 +171,7 @@ static int rcar_thermal_get_temp(struct thermal_zone_device *zone, } } - *temp = tmp; + *temp = MCELSIUS(tmp); return 0; }