projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1f667f1
)
rk3368: tsadc: support print temp from console
author
David Wu
<wdc@rock-chips.com>
Fri, 26 Jun 2015 08:57:36 +0000
(16:57 +0800)
committer
David Wu
<wdc@rock-chips.com>
Fri, 26 Jun 2015 08:57:36 +0000
(16:57 +0800)
Signed-off-by: David Wu <wdc@rock-chips.com>
drivers/thermal/rockchip_thermal.c
patch
|
blob
|
history
diff --git
a/drivers/thermal/rockchip_thermal.c
b/drivers/thermal/rockchip_thermal.c
index 7767d880470ccd4e46a8997a166830bfd762fa6a..007b0b29558e1e040668b665ef1936bcba61778b 100755
(executable)
--- a/
drivers/thermal/rockchip_thermal.c
+++ b/
drivers/thermal/rockchip_thermal.c
@@
-750,6
+750,7
@@
int rockchip_tsadc_get_temp(int chn, int voltage)
code_temp = (tsadc_data * voltage + 500000) / 1000000;
temp = rk_tsadcv3_code_to_temp(code_temp) / 1000;
temp = temp - thermal->cpu_temp_adjust;
+ thermal->cpu_temp = temp;
if(thermal->logout)
printk("cpu temp:[%d], voltage: %d\n"
, temp, voltage);