]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ARM: OMAP2+: pm-debug: Use seq_putc() in two functions
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 15 Oct 2016 20:30:44 +0000 (22:30 +0200)
committerTony Lindgren <tony@atomide.com>
Wed, 9 Nov 2016 22:33:33 +0000 (15:33 -0700)
A single character (line break) should be put into a sequence at the end.
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/pm-debug.c

index 0b339861d751004a4c3f8607e329922eeb008334..003a6cb248bec3cdce7646f2480c2157589af5e9 100644 (file)
@@ -114,8 +114,7 @@ static int pwrdm_dbg_show_counter(struct powerdomain *pwrdm, void *user)
                seq_printf(s, ",RET-MEMBANK%d-OFF:%d", i + 1,
                                pwrdm->ret_mem_off_counter[i]);
 
-       seq_printf(s, "\n");
-
+       seq_putc(s, '\n');
        return 0;
 }
 
@@ -138,7 +137,7 @@ static int pwrdm_dbg_show_timer(struct powerdomain *pwrdm, void *user)
                seq_printf(s, ",%s:%lld", pwrdm_state_names[i],
                        pwrdm->state_timer[i]);
 
-       seq_printf(s, "\n");
+       seq_putc(s, '\n');
        return 0;
 }