AVR32-pio: Use seq_putc() in pio_bank_show()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 16 Oct 2016 20:13:19 +0000 (22:13 +0200)
committerHans-Christian Noren Egtvedt <egtvedt@samfundet.no>
Mon, 12 Dec 2016 08:05:46 +0000 (09:05 +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>
arch/avr32/mach-at32ap/pio.c

index 13d3fc4..abbe1b5 100644 (file)
@@ -373,7 +373,7 @@ static void pio_bank_show(struct seq_file *s, struct gpio_chip *chip)
                if (imr & mask)
                        seq_printf(s, " irq-%d edge-both",
                                gpio_to_irq(chip->base + i));
-               seq_printf(s, "\n");
+               seq_putc(s, '\n');
        }
 }