diff options
Diffstat (limited to 'common/dps.c')
-rw-r--r-- | common/dps.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/common/dps.c b/common/dps.c index b0751acc39..c5a8ba4045 100644 --- a/common/dps.c +++ b/common/dps.c @@ -5,14 +5,16 @@ * Dynamic PDO Selection. */ +#include <stdint.h> + +#include "dps.h" #include "atomic.h" #include "battery.h" -#include "charge_manager.h" -#include "charge_state.h" -#include "charger.h" #include "common.h" #include "console.h" -#include "dps.h" +#include "charger.h" +#include "charge_manager.h" +#include "charge_state.h" #include "ec_commands.h" #include "hooks.h" #include "math_util.h" @@ -22,8 +24,6 @@ #include "usb_pd.h" #include "util.h" -#include <stdint.h> - #define K_MORE_PWR 96 #define K_LESS_PWR 93 #define K_SAMPLE 1 @@ -231,7 +231,7 @@ static int get_battery_target_voltage(int *target_mv) * * @return 0 if error occurs, else battery efficient voltage in mV */ -static int get_efficient_voltage(void) +int get_efficient_voltage(void) { int eff_mv = 0; int batt_mv; |