From 78a3ce945e66966832d2a8c07494163bd3c2f3ac Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Thu, 23 Oct 2025 15:26:56 +0200 Subject: [PATCH] pinctrl: stm32: Avoid keeping a bool value in a u32 variable Change type of variable to avoid keeping the bool return value in a variable of u32 type. Signed-off-by: Antonio Borneo Signed-off-by: Linus Walleij --- drivers/pinctrl/stm32/pinctrl-stm32.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c index 7175328d0df0c..ac64cb7f86d74 100644 --- a/drivers/pinctrl/stm32/pinctrl-stm32.c +++ b/drivers/pinctrl/stm32/pinctrl-stm32.c @@ -1148,7 +1148,7 @@ static u32 stm32_pconf_get_bias(struct stm32_gpio_bank *bank, static bool stm32_pconf_get(struct stm32_gpio_bank *bank, unsigned int offset, bool dir) { - u32 val; + bool val; if (dir) val = !!(readl_relaxed(bank->base + STM32_GPIO_IDR) & -- 2.47.3