gpiolib: Correct debugfs display of WM831x GPIO inversion
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Wed, 17 Feb 2010 18:45:24 +0000 (18:45 +0000)
committerSamuel Ortiz <sameo@linux.intel.com>
Sun, 7 Mar 2010 21:17:29 +0000 (22:17 +0100)
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/gpio/wm831x-gpio.c

index c5a00f7a7bf0f029a353a91d778510c3fc110924..2554180534a18ec8f0260fd636836754204ad524 100644 (file)
@@ -176,7 +176,7 @@ static void wm831x_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
                           wm831x_gpio_get(chip, i) ? "high" : "low",
                           pull,
                           powerdomain,
-                          reg & WM831X_GPN_POL ? " inverted" : "",
+                          reg & WM831X_GPN_POL ? "" : " inverted",
                           reg & WM831X_GPN_OD ? "open-drain" : "CMOS",
                           reg & WM831X_GPN_TRI ? " tristated" : "",
                           reg);