]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
pinctrl: abx500: Use seq_putc() in abx500_gpio_dbg_show()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 13 Jan 2018 10:04:29 +0000 (11:04 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 16 Jan 2018 10:06:13 +0000 (11:06 +0100)
A single character (line break) should be put into a sequence.
Thus use the corresponding function "seq_putc".

This issue was detected by using the Coccinelle software.

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

index 7d00a5d864f540b70857b884ae6b81514aa4e905..d56a49e53f56c5493522c1eb15f2ca0a0e8b9252 100644 (file)
@@ -633,7 +633,7 @@ static void abx500_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
        for (i = 0; i < chip->ngpio; i++, gpio++) {
                /* On AB8500, there is no GPIO0, the first is the GPIO 1 */
                abx500_gpio_dbg_show_one(s, pctldev, chip, i + 1, gpio);
-               seq_printf(s, "\n");
+               seq_putc(s, '\n');
        }
 }