pinctrl: qcom: spmi-gpio: Use fallthrough pseudo-keyword
Subsystems (5)
PATCH 1/1 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].
Signed-off-by Gustavo A. R. Silva <[email protected]>
--- drivers/pinctrl/qcom/pinctrl-spmi-gpio.c | 4 ++-- drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
drivers/pinctrl/qcom/pinctrl-spmi-gpio.c +2 -2
@@ -794,13 +794,13 @@ static int pmic_gpio_populate(struct pmic_gpio_state *state,switch (subtype) {case PMIC_GPIO_SUBTYPE_GPIO_4CH : pad->have_buffer = true; -/* Fall through */ + fallthrough;case PMIC_GPIO_SUBTYPE_GPIOC_4CH : pad->num_sources =4 ;break ;case PMIC_GPIO_SUBTYPE_GPIO_8CH : pad->have_buffer = true; -/* Fall through */ + fallthrough;case PMIC_GPIO_SUBTYPE_GPIOC_8CH : pad->num_sources =8 ;break ;
drivers/pinctrl/qcom/pinctrl-ssbi-gpio.c +1 -1
@@ -346,7 +346,7 @@ static int pm8xxx_pin_config_set(struct pinctrl_dev *pctldev,return -EINVAL ; } pin->pull_up_strength = arg; -/* FALLTHROUGH */ + fallthrough;case PIN_CONFIG_BIAS_PULL_UP : pin->bias = pin->pull_up_strength; banks |=BIT (2 );
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, I don't see any controversy here.
Yours,
Linus Walleij