From: Gustavo A. R. Silva Date: Mon, 5 Aug 2019 19:44:18 +0000 (-0500) Subject: power: supply: ab8500_charger: Mark expected switch fall-through X-Git-Tag: v5.15~5445^2~17 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=10948061162a4bd9c54086e04dc8cd11faaf5bb5;p=platform%2Fkernel%2Flinux-starfive.git 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 Signed-off-by: Sebastian Reichel --- diff --git a/drivers/power/supply/ab8500_charger.c b/drivers/power/supply/ab8500_charger.c index 30de448..1be75a2 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;