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>
This commit is contained in:
Antonio Borneo 2025-10-23 15:26:56 +02:00 committed by Linus Walleij
parent 701a6aa4a3
commit 78a3ce945e

View File

@ -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) &