summaryrefslogtreecommitdiff
path: root/drivers/thermal/rcar_thermal.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2012-11-26 06:32:06 +0400
committerZhang Rui <rui.zhang@intel.com>2012-11-26 07:03:45 +0400
commitc499703e64bef8f2e8ffe9ea7ee63a0a926b5530 (patch)
tree59ed4df2288844a28c75d4058ae9647afbe6be2e /drivers/thermal/rcar_thermal.c
parent4ba115b1e1ab6b717e08e0f4e766a1d16853d217 (diff)
downloadlinux-c499703e64bef8f2e8ffe9ea7ee63a0a926b5530.tar.xz
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/rcar_thermal.c')
-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;
}