Kernel->Hwmon:printk cpu temperature

This commit is contained in:
cjp
2016-02-29 14:40:03 +08:00
parent 3fe520f593
commit 3b106702e7

View File

@ -144,6 +144,8 @@ static ssize_t show_input(struct device *dev,
temp = data->ops.read_sensor(attr->index);
printk("cur temp %d \n" , temp);
return sprintf(buf, "%d\n", temp);
}