Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 10a8be54 authored by Patrice Chotard's avatar Patrice Chotard Committed by Linus Walleij
Browse files

pinctrl: abx500: fix abx500_config_pull_updown



Fix abx500_config_pull_updown() to set correct bit in
AB8540_GPIO_PULL_UPDOWN_REG.

Signed-off-by: default avatarPatrice Chotard <patrice.chotard@st.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent a2df4269
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -203,7 +203,7 @@ static int abx500_config_pull_updown(struct abx500_pinctrl *pct,
		goto out;
		goto out;
	}
	}


	pos = offset << 1;
	pos = (offset - pullud->first_pin) << 1;


	ret = abx500_mask_and_set_register_interruptible(pct->dev,
	ret = abx500_mask_and_set_register_interruptible(pct->dev,
			AB8500_MISC, AB8540_GPIO_PULL_UPDOWN_REG,
			AB8500_MISC, AB8540_GPIO_PULL_UPDOWN_REG,