pinctrl: lpc18xx: Use fallthrough pseudo-keyword
Subsystems (3)
PATCH 1/1 pinctrl: lpc18xx: Use fallthrough pseudo-keyword
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1].
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/pinctrl/pinctrl-lpc18xx.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-)
drivers/pinctrl/pinctrl-lpc18xx.c +6 -6
@@ -838,11 +838,11 @@ static int lpc18xx_pconf_get_pin(struct pinctrl_dev *pctldev, unsigned param, *arg = (reg &LPC18XX_SCU_PIN_EHD_MASK ) >>LPC18XX_SCU_PIN_EHD_POS ;switch (*arg) {case 3 : *arg +=5 ; -/* fall through */ + fallthrough;case 2 : *arg +=5 ; -/* fall through */ + fallthrough;case 1 : *arg +=3 ; -/* fall through */ + fallthrough;case 0 : *arg +=4 ; }break ;
@@ -1057,11 +1057,11 @@ static int lpc18xx_pconf_set_pin(struct pinctrl_dev *pctldev, unsigned param,switch (param_val) {case 20 : param_val -=5 ; -/* fall through */ + fallthrough;case 14 : param_val -=5 ; -/* fall through */ + fallthrough;case 8 : param_val -=3 ; -/* fall through */ + fallthrough;case 4 : param_val -=4 ;break ;default :
Signature · 1 line
2.27.0
Quoted 6 lines · Gustavo A. R. Silva
Replace the existing /* fall through */ comments and its variants with the new pseudo-keyword macro fallthrough[1].
Signed-off-by Gustavo A. R. Silva <[email protected]>
Patch applied.
Yours,
Linus Walleij