pinctrl: nomadik: fix pull debug print inversion
authorLinus Walleij <linus.walleij@linaro.org>
Thu, 24 Mar 2016 12:15:45 +0000 (13:15 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Thu, 31 Mar 2016 08:45:26 +0000 (10:45 +0200)
Pull up was reported as pull down and vice versa. Fix this.

Fixes: 8f1774a2a971 "pinctrl: nomadik: improve GPIO debug prints"
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/nomadik/pinctrl-nomadik.c

index 352406108fa0a3572aa41043a79042c73ec5d1cf..c8969dd494497c88d75d1525e1f7f646998bb388 100644 (file)
@@ -990,7 +990,7 @@ static void nmk_gpio_dbg_show_one(struct seq_file *s,
                int val;
 
                if (pull)
-                       pullidx = data_out ? 1 : 2;
+                       pullidx = data_out ? 2 : 1;
 
                seq_printf(s, " gpio-%-3d (%-20.20s) in  %s %s",
                           gpio,