aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2012-11-25 21:32:06 -0500
committerZhang Rui <rui.zhang@intel.com>2012-11-25 22:03:45 -0500
commitc499703e64bef8f2e8ffe9ea7ee63a0a926b5530 (patch)
tree59ed4df2288844a28c75d4058ae9647afbe6be2e /drivers
parent4ba115b1e1ab6b717e08e0f4e766a1d16853d217 (diff)
thermal: rcar: fixup the unit of temperature
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>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/thermal/rcar_thermal.c4
1 files changed, 3 insertions, 1 deletions
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 {
43 u32 comp; 43 u32 comp;
44}; 44};
45 45
46#define MCELSIUS(temp) ((temp) * 1000)
47
46/* 48/*
47 * basic functions 49 * basic functions
48 */ 50 */
@@ -169,7 +171,7 @@ static int rcar_thermal_get_temp(struct thermal_zone_device *zone,
169 } 171 }
170 } 172 }
171 173
172 *temp = tmp; 174 *temp = MCELSIUS(tmp);
173 return 0; 175 return 0;
174} 176}
175 177