From: Markus Elfring Date: Sat, 15 Oct 2016 20:30:44 +0000 (+0200) Subject: ARM: OMAP2+: pm-debug: Use seq_putc() in two functions X-Git-Tag: v4.10-rc1~86^2~9^2 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=5c02b01d234f8410010c952069d3fb9ec5d9124a;p=users%2Fjedix%2Flinux-maple.git ARM: OMAP2+: pm-debug: Use seq_putc() in two functions 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 Signed-off-by: Tony Lindgren --- diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c index 0b339861d751..003a6cb248be 100644 --- a/arch/arm/mach-omap2/pm-debug.c +++ b/arch/arm/mach-omap2/pm-debug.c @@ -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; }