summaryrefslogtreecommitdiffstats
path: root/drivers/thermal
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2012-11-26 02:32:06 +0000
committerZhang Rui <rui.zhang@intel.com>2012-11-26 11:03:45 +0800
commitc499703e64bef8f2e8ffe9ea7ee63a0a926b5530 (patch)
tree59ed4df2288844a28c75d4058ae9647afbe6be2e /drivers/thermal
parent4ba115b1e1ab6b717e08e0f4e766a1d16853d217 (diff)
downloadlinux-stable-c499703e64bef8f2e8ffe9ea7ee63a0a926b5530.tar.gz
linux-stable-c499703e64bef8f2e8ffe9ea7ee63a0a926b5530.tar.bz2
linux-stable-c499703e64bef8f2e8ffe9ea7ee63a0a926b5530.zip
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/thermal')
-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 {
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;
}