mirror of
https://github.com/torvalds/linux.git
synced 2026-06-10 07:32:29 +02:00
rk3368: tsadc: support print temp from console
Signed-off-by: David Wu <wdc@rock-chips.com>
This commit is contained in:
parent
1f667f18ff
commit
b517a4ebbf
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user