Commit 7c3012c8 authored by Markus Elfring's avatar Markus Elfring Committed by Linus Walleij

pinctrl: mcp23s08: Combine two function calls into one in mcp23s08_dbg_show()

* Print a line break together with other data in a single function call.

* Adjust indentation.
Signed-off-by: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent ba33f4f4
...@@ -748,13 +748,12 @@ static void mcp23s08_dbg_show(struct seq_file *s, struct gpio_chip *chip) ...@@ -748,13 +748,12 @@ static void mcp23s08_dbg_show(struct seq_file *s, struct gpio_chip *chip)
if (!label) if (!label)
continue; continue;
seq_printf(s, " gpio-%-3d P%c.%d (%-12s) %s %s %s", seq_printf(s, " gpio-%-3d P%c.%d (%-12s) %s %s %s\n",
chip->base + t, bank, t, label, chip->base + t, bank, t, label,
(iodir & mask) ? "in " : "out", (iodir & mask) ? "in " : "out",
(gpio & mask) ? "hi" : "lo", (gpio & mask) ? "hi" : "lo",
(gppu & mask) ? "up" : " "); (gppu & mask) ? "up" : " ");
/* NOTE: ignoring the irq-related registers */ /* NOTE: ignoring the irq-related registers */
seq_puts(s, "\n");
} }
done: done:
mutex_unlock(&mcp->lock); mutex_unlock(&mcp->lock);
......
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