gpio: stmpe: Use seq_putc() in stmpe_dbg_show()
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 12 Jan 2018 18:30:50 +0000 (19:30 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 17 Jan 2018 06:44:15 +0000 (07:44 +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/gpio/gpio-stmpe.c

index 3b6efce..8061c70 100644 (file)
@@ -350,7 +350,7 @@ static void stmpe_dbg_show(struct seq_file *s, struct gpio_chip *gc)
 
        for (i = 0; i < gc->ngpio; i++, gpio++) {
                stmpe_dbg_show_one(s, gc, i, gpio);
-               seq_printf(s, "\n");
+               seq_putc(s, '\n');
        }
 }