Skip to content

Commit 1586f55

Browse files
GustavoARSilvalinusw
authored andcommitted
pinctrl: qcom: spmi-gpio: 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/20200716212213.GA17623@embeddedor Signed-off-by: Linus Walleij <[email protected]>
1 parent bf3d399 commit 1586f55

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

drivers/pinctrl/qcom/pinctrl-spmi-gpio.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -793,13 +793,13 @@ static int pmic_gpio_populate(struct pmic_gpio_state *state,
793793
switch (subtype) {
794794
case PMIC_GPIO_SUBTYPE_GPIO_4CH:
795795
pad->have_buffer = true;
796-
/* Fall through */
796+
fallthrough;
797797
case PMIC_GPIO_SUBTYPE_GPIOC_4CH:
798798
pad->num_sources = 4;
799799
break;
800800
case PMIC_GPIO_SUBTYPE_GPIO_8CH:
801801
pad->have_buffer = true;
802-
/* Fall through */
802+
fallthrough;
803803
case PMIC_GPIO_SUBTYPE_GPIOC_8CH:
804804
pad->num_sources = 8;
805805
break;

drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,7 @@ static int pm8xxx_pin_config_set(struct pinctrl_dev *pctldev,
346346
return -EINVAL;
347347
}
348348
pin->pull_up_strength = arg;
349-
/* FALLTHROUGH */
349+
fallthrough;
350350
case PIN_CONFIG_BIAS_PULL_UP:
351351
pin->bias = pin->pull_up_strength;
352352
banks |= BIT(2);

0 commit comments

Comments
 (0)