Skip to content

Commit 78a3ce9

Browse files
AntonioBorneoLinus Walleij
authored andcommitted
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>
1 parent 701a6aa commit 78a3ce9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/pinctrl/stm32/pinctrl-stm32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1148,7 +1148,7 @@ static u32 stm32_pconf_get_bias(struct stm32_gpio_bank *bank,
11481148
static bool stm32_pconf_get(struct stm32_gpio_bank *bank,
11491149
unsigned int offset, bool dir)
11501150
{
1151-
u32 val;
1151+
bool val;
11521152

11531153
if (dir)
11541154
val = !!(readl_relaxed(bank->base + STM32_GPIO_IDR) &

0 commit comments

Comments
 (0)