Skip to content

Commit

Permalink
pinctrl: fix pinconf_pins_show iteration
Browse files Browse the repository at this point in the history
Commit 706e852 "pinctrl: correct a offset while enumerating pins"
modified the variable used by pinconf_pin_show()'s for loop, but didn't
update the for loop test expression.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
  • Loading branch information
Stephen Warren authored and Linus Walleij committed Jan 20, 2012
1 parent dcd6c92 commit 546edd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/pinctrl/pinconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ static int pinconf_pins_show(struct seq_file *s, void *what)
seq_puts(s, "Format: pin (name): pinmux setting array\n");

/* The pin number can be retrived from the pin controller descriptor */
for (i = 0; pin < pctldev->desc->npins; i++) {
for (i = 0; i < pctldev->desc->npins; i++) {
struct pin_desc *desc;

pin = pctldev->desc->pins[i].number;
Expand Down

0 comments on commit 546edd8

Please sign in to comment.