projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ba115b
)
thermal: rcar: fixup the unit of temperature
author
Kuninori Morimoto
<kuninori.morimoto.gx@renesas.com>
Mon, 26 Nov 2012 02:32:06 +0000
(
02:32
+0000)
committer
Zhang Rui
<rui.zhang@intel.com>
Mon, 26 Nov 2012 03:03:45 +0000
(11:03 +0800)
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>
drivers/thermal/rcar_thermal.c
patch
|
blob
|
history
diff --git
a/drivers/thermal/rcar_thermal.c
b/drivers/thermal/rcar_thermal.c
index 81dce23828f380958c74d192ddaf964a6dd40002..f2678ff0ed2bb575bf7ad2a9f82597cf0e853b28 100644
(file)
--- 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;
}