regulator: axp20x: Mark expected switch fall-throughs
authorGustavo A. R. Silva <gustavo@embeddedor.com>
Thu, 4 Oct 2018 12:52:34 +0000 (14:52 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 4 Oct 2018 14:02:19 +0000 (15:02 +0100)
commit4b03227a65dc7aa8c0c1f8f6b3726225ae529e47
tree71512d0a5e9056f58a1dfb42daaa4153ab1518de
parent28be5f15df2ee6882b0a122693159c96a28203c7
regulator: axp20x: Mark expected switch fall-throughs

In preparation to enabling -Wimplicit-fallthrough, mark switch cases
where we are expecting to fall through.

Notice that in this particular case, I moved the whole comment
"Fall through to the check below.", which contains the "Fall through"
comment, at the bottom of the case, which is what GCC is expecting
to find.

Addresses-Coverity-ID: 1436594 ("Missing break in switch")
Addresses-Coverity-ID: 1364475 ("Missing break in switch")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/axp20x-regulator.c