pinctrl: baytrail: Use fallthrough pseudo-keyword
authorGustavo A. R. Silva <gustavoars@kernel.org>
Thu, 16 Jul 2020 21:19:19 +0000 (16:19 -0500)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sun, 19 Jul 2020 10:01:56 +0000 (13:01 +0300)
Replace the existing /* fall through */ comments and its variants with
the new pseudo-keyword macro fallthrough[1].

[1] https://www.kernel.org/doc/html/latest/process/deprecated.html?highlight=fallthrough#implicit-switch-case-fall-through

Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/pinctrl/intel/pinctrl-baytrail.c

index a917a2df520ef74852fd6f292940195e4a92d0f1..d6e35cba3065a4cef60bce240ac7d99dca29d27b 100644 (file)
@@ -1372,13 +1372,13 @@ static void byt_irq_unmask(struct irq_data *d)
        switch (irqd_get_trigger_type(d)) {
        case IRQ_TYPE_LEVEL_HIGH:
                value |= BYT_TRIG_LVL;
-               /* fall through */
+               fallthrough;
        case IRQ_TYPE_EDGE_RISING:
                value |= BYT_TRIG_POS;
                break;
        case IRQ_TYPE_LEVEL_LOW:
                value |= BYT_TRIG_LVL;
-               /* fall through */
+               fallthrough;
        case IRQ_TYPE_EDGE_FALLING:
                value |= BYT_TRIG_NEG;
                break;