summaryrefslogtreecommitdiff
path: root/common/dps.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/dps.c')
-rw-r--r--common/dps.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/common/dps.c b/common/dps.c
index c5a8ba4045..b0751acc39 100644
--- a/common/dps.c
+++ b/common/dps.c
@@ -5,16 +5,14 @@
* Dynamic PDO Selection.
*/
-#include <stdint.h>
-
-#include "dps.h"
#include "atomic.h"
#include "battery.h"
-#include "common.h"
-#include "console.h"
-#include "charger.h"
#include "charge_manager.h"
#include "charge_state.h"
+#include "charger.h"
+#include "common.h"
+#include "console.h"
+#include "dps.h"
#include "ec_commands.h"
#include "hooks.h"
#include "math_util.h"
@@ -24,6 +22,8 @@
#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
*/
-int get_efficient_voltage(void)
+static int get_efficient_voltage(void)
{
int eff_mv = 0;
int batt_mv;