bdk: fan: rename functions and add set from temp

- Rename functions to proper style (drivername_)
- Add fan_set_from_temp for managing the fan with passed SoC temperature.
This commit is contained in:
CTCaer committed 2024-06-07 17:14:05 +03:00
1 parent a34206df5b
commit 8b4f776c9d
3 files changed
+21 -7

No files matched your search

+1 -1
View File
@@ -459,7 +459,7 @@ void hw_deinit(bool coreboot, u32 bl_magic)
// Disable temperature sensor, touchscreen, 5V regulators, Joy-Con and VIC.
vic_end();
tmp451_end();
set_fan_duty(0);
fan_set_duty(0);
touch_power_off();
jc_deinit();
regulator_5v_disable(REGULATOR_5V_ALL);