mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 18:43:33 +02:00
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:
parent
701a6aa4a3
commit
78a3ce945e
|
|
@ -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) &
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user