Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pinctrl: baytrail: Use fallthrough pseudo-keyword

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>

authored by

Gustavo A. R. Silva and committed by
Andy Shevchenko
0a093020 653d9645

+2 -2
+2 -2
drivers/pinctrl/intel/pinctrl-baytrail.c
··· 1372 1372 switch (irqd_get_trigger_type(d)) { 1373 1373 case IRQ_TYPE_LEVEL_HIGH: 1374 1374 value |= BYT_TRIG_LVL; 1375 - /* fall through */ 1375 + fallthrough; 1376 1376 case IRQ_TYPE_EDGE_RISING: 1377 1377 value |= BYT_TRIG_POS; 1378 1378 break; 1379 1379 case IRQ_TYPE_LEVEL_LOW: 1380 1380 value |= BYT_TRIG_LVL; 1381 - /* fall through */ 1381 + fallthrough; 1382 1382 case IRQ_TYPE_EDGE_FALLING: 1383 1383 value |= BYT_TRIG_NEG; 1384 1384 break;