pinctrl: mcp23s08: Combine two function calls into one in mcp23s08_dbg_show()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 6 Jan 2018 19:40:04 +0000 (20:40 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 9 Jan 2018 14:10:02 +0000 (15:10 +0100)
* Print a line break together with other data in a single function call.

* Adjust indentation.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-mcp23s08.c

index e6ad36dea3e596cccaeb9b104e8823507f76b151..95d548f3ba5369c6c43e822d23efb62a9cae650d 100644 (file)
@@ -748,13 +748,12 @@ static void mcp23s08_dbg_show(struct seq_file *s, struct gpio_chip *chip)
                if (!label)
                        continue;
 
-               seq_printf(s, " gpio-%-3d P%c.%d (%-12s) %s %s %s",
-                       chip->base + t, bank, t, label,
-                       (iodir & mask) ? "in " : "out",
-                       (gpio & mask) ? "hi" : "lo",
-                       (gppu & mask) ? "up" : "  ");
+               seq_printf(s, " gpio-%-3d P%c.%d (%-12s) %s %s %s\n",
+                          chip->base + t, bank, t, label,
+                          (iodir & mask) ? "in " : "out",
+                          (gpio & mask) ? "hi" : "lo",
+                          (gppu & mask) ? "up" : "  ");
                /* NOTE:  ignoring the irq-related registers */
-               seq_puts(s, "\n");
        }
 done:
        mutex_unlock(&mcp->lock);