summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonio Borneo <antonio.borneo@foss.st.com>2025-10-23 15:26:56 +0200
committerLinus Walleij <linus.walleij@linaro.org>2025-10-28 10:43:01 +0100
commit78a3ce945e66966832d2a8c07494163bd3c2f3ac (patch)
tree8b06cc2bc52ad73a9b5d84b0d2030d412b91cf88
parent701a6aa4a3b1ce7228523f696c9a1212abdd317f (diff)
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 <antonio.borneo@foss.st.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r--drivers/pinctrl/stm32/pinctrl-stm32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/stm32/pinctrl-stm32.c b/drivers/pinctrl/stm32/pinctrl-stm32.c
index 7175328d0df0..ac64cb7f86d7 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) &