Commit 6b8274fa authored by Mark Brown's avatar Mark Brown Committed by Samuel Ortiz

gpiolib: Correct debugfs display of WM831x GPIO inversion

Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarSamuel Ortiz <sameo@linux.intel.com>
parent 3383d23d
...@@ -176,7 +176,7 @@ static void wm831x_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip) ...@@ -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", wm831x_gpio_get(chip, i) ? "high" : "low",
pull, pull,
powerdomain, powerdomain,
reg & WM831X_GPN_POL ? " inverted" : "", reg & WM831X_GPN_POL ? "" : " inverted",
reg & WM831X_GPN_OD ? "open-drain" : "CMOS", reg & WM831X_GPN_OD ? "open-drain" : "CMOS",
reg & WM831X_GPN_TRI ? " tristated" : "", reg & WM831X_GPN_TRI ? " tristated" : "",
reg); reg);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment