pinctrl: fix pinconf_pins_show iteration
authorStephen Warren <swarren@nvidia.com>
Fri, 6 Jan 2012 20:38:31 +0000 (13:38 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 20 Jan 2012 16:55:49 +0000 (17:55 +0100)
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>
drivers/pinctrl/pinconf.c

index 1259872..1892a37 100644 (file)
@@ -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;