mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
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 <gustavoars@kernel.org> Link: https://lore.kernel.org/r/20200716212213.GA17623@embeddedor Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
committed by
Linus Walleij
parent
bf3d399908
commit
1586f556ca
@@ -793,13 +793,13 @@ static int pmic_gpio_populate(struct pmic_gpio_state *state,
|
|||||||
switch (subtype) {
|
switch (subtype) {
|
||||||
case PMIC_GPIO_SUBTYPE_GPIO_4CH:
|
case PMIC_GPIO_SUBTYPE_GPIO_4CH:
|
||||||
pad->have_buffer = true;
|
pad->have_buffer = true;
|
||||||
/* Fall through */
|
fallthrough;
|
||||||
case PMIC_GPIO_SUBTYPE_GPIOC_4CH:
|
case PMIC_GPIO_SUBTYPE_GPIOC_4CH:
|
||||||
pad->num_sources = 4;
|
pad->num_sources = 4;
|
||||||
break;
|
break;
|
||||||
case PMIC_GPIO_SUBTYPE_GPIO_8CH:
|
case PMIC_GPIO_SUBTYPE_GPIO_8CH:
|
||||||
pad->have_buffer = true;
|
pad->have_buffer = true;
|
||||||
/* Fall through */
|
fallthrough;
|
||||||
case PMIC_GPIO_SUBTYPE_GPIOC_8CH:
|
case PMIC_GPIO_SUBTYPE_GPIOC_8CH:
|
||||||
pad->num_sources = 8;
|
pad->num_sources = 8;
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -346,7 +346,7 @@ static int pm8xxx_pin_config_set(struct pinctrl_dev *pctldev,
|
|||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
pin->pull_up_strength = arg;
|
pin->pull_up_strength = arg;
|
||||||
/* FALLTHROUGH */
|
fallthrough;
|
||||||
case PIN_CONFIG_BIAS_PULL_UP:
|
case PIN_CONFIG_BIAS_PULL_UP:
|
||||||
pin->bias = pin->pull_up_strength;
|
pin->bias = pin->pull_up_strength;
|
||||||
banks |= BIT(2);
|
banks |= BIT(2);
|
||||||
|
|||||||
Reference in New Issue
Block a user