diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2019-08-05 21:44:18 +0200 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2019-09-02 10:06:31 +0200 |
commit | 10948061162a4bd9c54086e04dc8cd11faaf5bb5 (patch) | |
tree | 18fcfea98bd841c7b43314f4523635e4aa26a283 /drivers/power | |
parent | power: supply: sbs-battery: only return health when battery present (diff) | |
download | linux-10948061162a4bd9c54086e04dc8cd11faaf5bb5.tar.xz linux-10948061162a4bd9c54086e04dc8cd11faaf5bb5.zip |
power: supply: ab8500_charger: Mark expected switch fall-through
Mark switch cases where we are expecting to fall through.
This patch fixes the following warning (Building: allmodconfig arm):
drivers/power/supply/ab8500_charger.c:738:6: warning: this statement may fall through [-Wimplicit-fallthrough=]
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.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..1be75a2fed9b 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; |