diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-08-20 15:55:26 -0500 |
---|---|---|
committer | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-08-20 19:43:33 -0500 |
commit | 5274fdba8e3c04e9ac1ba457379afc8835f9aa0f (patch) | |
tree | 7881695aeebec7ec89759a8058e2c43cc5debf2a /drivers/power | |
parent | c9cbbb9f04f3ee27970f08d3aa6e6742a43d4ca5 (diff) | |
download | linux-5274fdba8e3c04e9ac1ba457379afc8835f9aa0f.tar.gz linux-5274fdba8e3c04e9ac1ba457379afc8835f9aa0f.tar.bz2 linux-5274fdba8e3c04e9ac1ba457379afc8835f9aa0f.zip |
power: supply: ab8500_charger: Mark expected switch fall-through
Mark switch cases where we are expecting to fall through.
Fix the following warning (Building: allmodconfig arm):
drivers/power/supply/ab8500_charger.c: In function ‘ab8500_charger_max_usb_curr’:
drivers/power/supply/ab8500_charger.c:738:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
if (di->vbus_detected) {
^
drivers/power/supply/ab8500_charger.c:745:2: note: here
case USB_STAT_HM_IDGND:
^~~~
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Diffstat (limited to 'drivers/power')
-rw-r--r-- | drivers/power/supply/ab8500_charger.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/power/supply/ab8500_charger.c b/drivers/power/supply/ab8500_charger.c index 30de448de802..86d88aec94a1 100644 --- a/drivers/power/supply/ab8500_charger.c +++ b/drivers/power/supply/ab8500_charger.c @@ -742,6 +742,7 @@ static int ab8500_charger_max_usb_curr(struct ab8500_charger *di, USB_CH_IP_CUR_LVL_1P5; break; } + /* Else, fall through */ case USB_STAT_HM_IDGND: dev_err(di->dev, "USB Type - Charging not allowed\n"); di->max_usb_in_curr.usb_type_max = USB_CH_IP_CUR_LVL_0P05; |