diff options
Diffstat (limited to 'driver/charger/bd9995x.c')
-rw-r--r-- | driver/charger/bd9995x.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/driver/charger/bd9995x.c b/driver/charger/bd9995x.c index 7cdbdc4893..4fb5e9a347 100644 --- a/driver/charger/bd9995x.c +++ b/driver/charger/bd9995x.c @@ -407,10 +407,7 @@ static int bd9995x_bc12_check_type(int port) static void bd9995x_bc12_detach(int port, int type) { - struct charge_port_info charge = { - .voltage = USB_CHARGER_VOLTAGE_MV, - .current = 0, - }; + struct charge_port_info charge = {0}; /* Update charge manager */ charge_manager_update_charge(type, port, &charge); |