aboutsummaryrefslogtreecommitdiffstats
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
parent4ba115b1e1ab6b717e08e0f4e766a1d16853d217 (diff)
downloadkernel_goldelico_gta04-c499703e64bef8f2e8ffe9ea7ee63a0a926b5530.zip
kernel_goldelico_gta04-c499703e64bef8f2e8ffe9ea7ee63a0a926b5530.tar.gz
kernel_goldelico_gta04-c499703e64bef8f2e8ffe9ea7ee63a0a926b5530.tar.bz2
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>
-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 81dce23..f2678ff 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;
}