summaryrefslogtreecommitdiffstats
path: root/drivers/gpio/gpio-ath79.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <garsilva@embeddedor.com>2017-10-13 22:43:53 +0200
committerLinus Walleij <linus.walleij@linaro.org>2017-10-19 22:32:40 +0200
commite80df7b823bc3e59eaf93ec05bb701bbc7b6c586 (patch)
treeee48bcba7a36c1588f5d3615f1a72f3c4d748356 /drivers/gpio/gpio-ath79.c
parentgpiolib: don't allow OPEN_DRAIN & OPEN_SOURCE flags for input (diff)
downloadlinux-e80df7b823bc3e59eaf93ec05bb701bbc7b6c586.tar.xz
linux-e80df7b823bc3e59eaf93ec05bb701bbc7b6c586.zip
gpio: mark expected switch fall-throughs
In preparation to enabling -Wimplicit-fallthrough, mark switch cases where we are expecting to fall through. Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio/gpio-ath79.c')
-rw-r--r--drivers/gpio/gpio-ath79.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpio/gpio-ath79.c b/drivers/gpio/gpio-ath79.c
index f33d4a5fe671..02e56e0c793a 100644
--- a/drivers/gpio/gpio-ath79.c
+++ b/drivers/gpio/gpio-ath79.c
@@ -132,6 +132,7 @@ static int ath79_gpio_irq_set_type(struct irq_data *data,
case IRQ_TYPE_LEVEL_HIGH:
polarity |= mask;
+ /* fall through */
case IRQ_TYPE_LEVEL_LOW:
type |= mask;
break;