aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2016-10-15 22:30:44 +0200
committerTony Lindgren <tony@atomide.com>2016-11-09 15:33:33 -0700
commit5c02b01d234f8410010c952069d3fb9ec5d9124a (patch)
treecd36f5fab81591f48223d6de62cf144e342518c0
parent71b2e2e3b31d8ded15105e0c84e151f6fc6e413f (diff)
downloadlinux-omap-omap-for-v4.10/fixes-not-urgent.tar.gz
ARM: OMAP2+: pm-debug: Use seq_putc() in two functionsomap-for-v4.10/fixes-not-urgent-signedomap-for-v4.10/fixes-not-urgent
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>
-rw-r--r--arch/arm/mach-omap2/pm-debug.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c
index 0b339861d7510..003a6cb248bec 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;
}