mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
ab8500-charger: We print an unintended error message
There is a missing break statement here, so we print an error message that the USB type is invalid. The original code still works fine though except for the error message. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Anton Vorontsov <anton@enomsg.org>
This commit is contained in:
parent
68f429d558
commit
ed5243f8ab
1 changed files with 1 additions and 0 deletions
|
@ -774,6 +774,7 @@ static int ab8500_charger_max_usb_curr(struct ab8500_charger *di,
|
|||
di->max_usb_in_curr.usb_type_max = USB_CH_IP_CUR_LVL_0P5;
|
||||
dev_dbg(di->dev, "USB Type - 0x%02x MaxCurr: %d", link_status,
|
||||
di->max_usb_in_curr.usb_type_max);
|
||||
break;
|
||||
case USB_STAT_NOT_VALID_LINK:
|
||||
dev_err(di->dev, "USB Type invalid - try charging anyway\n");
|
||||
di->max_usb_in_curr.usb_type_max = USB_CH_IP_CUR_LVL_0P5;
|
||||
|
|
Loading…
Reference in a new issue