ARM: OMAP2+: mux: Replace three seq_printf() calls by seq_puts()
Strings which did not contain data format specification should be put into a sequence. Thus use the corresponding function "seq_puts". 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>
This commit is contained in:
parent
76eddd6046
commit
bbf193fc3c
|
@ -561,7 +561,7 @@ static inline void omap_mux_decode(struct seq_file *s, u16 val)
|
||||||
do {
|
do {
|
||||||
seq_printf(s, "%s", flags[i]);
|
seq_printf(s, "%s", flags[i]);
|
||||||
if (i > 0)
|
if (i > 0)
|
||||||
seq_printf(s, " | ");
|
seq_puts(s, " | ");
|
||||||
} while (i-- > 0);
|
} while (i-- > 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -602,7 +602,7 @@ static int omap_mux_dbg_board_show(struct seq_file *s, void *unused)
|
||||||
*/
|
*/
|
||||||
seq_printf(s, "OMAP%d_MUX(%s, ", omap_gen, m0_def);
|
seq_printf(s, "OMAP%d_MUX(%s, ", omap_gen, m0_def);
|
||||||
omap_mux_decode(s, val);
|
omap_mux_decode(s, val);
|
||||||
seq_printf(s, "),\n");
|
seq_puts(s, "),\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -659,7 +659,7 @@ static int omap_mux_dbg_signal_show(struct seq_file *s, void *unused)
|
||||||
partition->phys + m->reg_offset, m->reg_offset, val,
|
partition->phys + m->reg_offset, m->reg_offset, val,
|
||||||
m->balls[0] ? m->balls[0] : none,
|
m->balls[0] ? m->balls[0] : none,
|
||||||
m->balls[1] ? m->balls[1] : none);
|
m->balls[1] ? m->balls[1] : none);
|
||||||
seq_printf(s, "mode: ");
|
seq_puts(s, "mode: ");
|
||||||
omap_mux_decode(s, val);
|
omap_mux_decode(s, val);
|
||||||
seq_printf(s, "\n");
|
seq_printf(s, "\n");
|
||||||
seq_printf(s, "signals: %s | %s | %s | %s | %s | %s | %s | %s\n",
|
seq_printf(s, "signals: %s | %s | %s | %s | %s | %s | %s | %s\n",
|
||||||
|
|
Loading…
Reference in New Issue