Skip to content

Commit bf3d399

Browse files
GustavoARSilvalinusw
authored andcommitted
pinctrl: lpc18xx: 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 <[email protected]> Link: https://lore.kernel.org/r/20200716212109.GA17525@embeddedor Signed-off-by: Linus Walleij <[email protected]>
1 parent ad05d4b commit bf3d399

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

drivers/pinctrl/pinctrl-lpc18xx.c

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -838,11 +838,11 @@ static int lpc18xx_pconf_get_pin(struct pinctrl_dev *pctldev, unsigned param,
838838
*arg = (reg & LPC18XX_SCU_PIN_EHD_MASK) >> LPC18XX_SCU_PIN_EHD_POS;
839839
switch (*arg) {
840840
case 3: *arg += 5;
841-
/* fall through */
841+
fallthrough;
842842
case 2: *arg += 5;
843-
/* fall through */
843+
fallthrough;
844844
case 1: *arg += 3;
845-
/* fall through */
845+
fallthrough;
846846
case 0: *arg += 4;
847847
}
848848
break;
@@ -1057,11 +1057,11 @@ static int lpc18xx_pconf_set_pin(struct pinctrl_dev *pctldev, unsigned param,
10571057

10581058
switch (param_val) {
10591059
case 20: param_val -= 5;
1060-
/* fall through */
1060+
fallthrough;
10611061
case 14: param_val -= 5;
1062-
/* fall through */
1062+
fallthrough;
10631063
case 8: param_val -= 3;
1064-
/* fall through */
1064+
fallthrough;
10651065
case 4: param_val -= 4;
10661066
break;
10671067
default:

0 commit comments

Comments
 (0)