feat(MP/kernel): add example
This commit is contained in:
@@ -22,6 +22,11 @@ static int __init temp_regulator_init(void) {
|
||||
return ret;
|
||||
}
|
||||
|
||||
uint32_t temp = read_temp();
|
||||
pr_info("temp_regulator: Temperature=%u.%03u C\n",
|
||||
temp / 1000,
|
||||
temp % 1000);
|
||||
|
||||
pr_info("Linux module temp_regulator loaded\n");
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user