Skip to content

Commit cfb3479

Browse files
GustavoARSilvasre
authored andcommitted
power: max8925: mark expected switch fall-through
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Addresses-Coverity-ID: 201510 ("Missing break in switch") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> Signed-off-by: Sebastian Reichel <sebastian.reichel@collabora.com>
1 parent 415d602 commit cfb3479

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/power/supply/max8925_power.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ static irqreturn_t max8925_charger_handler(int irq, void *data)
124124
case MAX8925_IRQ_VCHG_THM_OK_F:
125125
/* Battery is not ready yet */
126126
dev_dbg(chip->dev, "Battery temperature is out of range\n");
127+
/* Fall through */
127128
case MAX8925_IRQ_VCHG_DC_OVP:
128129
dev_dbg(chip->dev, "Error detection\n");
129130
__set_charger(info, 0);

0 commit comments

Comments
 (0)