]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: OMAP2+: mux: Use seq_putc() in omap_mux_dbg_signal_show()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 15 Oct 2016 20:24:29 +0000 (22:24 +0200)
committerTony Lindgren <tony@atomide.com>
Wed, 9 Nov 2016 22:34:09 +0000 (15:34 -0700)
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: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/mux.c

index 4bdfa3d1943e4488f8f81bee5d580a5709ee1a11..e1fa39e1ecf8dcb8e16076d7a835b4379fead554 100644 (file)
@@ -661,7 +661,7 @@ static int omap_mux_dbg_signal_show(struct seq_file *s, void *unused)
                        m->balls[1] ? m->balls[1] : none);
        seq_puts(s, "mode: ");
        omap_mux_decode(s, val);
-       seq_printf(s, "\n");
+       seq_putc(s, '\n');
        seq_printf(s, "signals: %s | %s | %s | %s | %s | %s | %s | %s\n",
                        m->muxnames[0] ? m->muxnames[0] : none,
                        m->muxnames[1] ? m->muxnames[1] : none,