From: Mark Brown Date: Wed, 17 Feb 2010 18:45:24 +0000 (+0000) Subject: gpiolib: Correct debugfs display of WM831x GPIO inversion X-Git-Tag: 2.1b_release~9118^2~12 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6b8274fafeec9b112cee5b6ced5f9189957c889f;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git gpiolib: Correct debugfs display of WM831x GPIO inversion Signed-off-by: Mark Brown Signed-off-by: Samuel Ortiz --- diff --git a/drivers/gpio/wm831x-gpio.c b/drivers/gpio/wm831x-gpio.c index c5a00f7..2554180 100644 --- a/drivers/gpio/wm831x-gpio.c +++ b/drivers/gpio/wm831x-gpio.c @@ -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);