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

Commit 71493de7 authored by Laurent Pinchart's avatar Laurent Pinchart Committed by Linus Walleij
Browse files

sh-pfc: sh7372: Fix pin bias setup



When computing the pin configuration register offset the bias setup code
erroneously compares the pin number range with the loop index instead of
the pin number. Fix it.

Signed-off-by: default avatarLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 5d276194
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2584,7 +2584,7 @@ static void __iomem *sh7372_pinmux_portcr(struct sh_pfc *pfc, unsigned int pin)
		const struct sh7372_portcr_group *group =
			&sh7372_portcr_offsets[i];

		if (i <= group->end_pin)
		if (pin <= group->end_pin)
			return pfc->window->virt + group->offset + pin;
	}