summaryrefslogtreecommitdiff
path: root/common/charger.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/charger.c')
-rw-r--r--common/charger.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/common/charger.c b/common/charger.c
index e2f6112ed7..0f198b2635 100644
--- a/common/charger.c
+++ b/common/charger.c
@@ -455,7 +455,7 @@ enum ec_error_list charger_discharge_on_ac(int enable)
return rv;
}
-int charger_get_vbus_voltage(int port)
+enum ec_error_list charger_get_vbus_voltage(int port, int *voltage)
{
int chgnum = 0;
int rv = 0;
@@ -466,7 +466,8 @@ int charger_get_vbus_voltage(int port)
}
if (chg_chips[chgnum].drv->get_vbus_voltage)
- rv = chg_chips[chgnum].drv->get_vbus_voltage(chgnum, port);
+ rv = chg_chips[chgnum].drv->get_vbus_voltage(chgnum, port,
+ voltage);
return rv;
}