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
2024-06-07 17:14:05 +03:00
parent a34206df5b
commit 8b4f776c9d
3 changed files with 21 additions and 7 deletions

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);