Commit 47352a63 authored by Markus Elfring's avatar Markus Elfring Committed by Linus Walleij

pinctrl: Use seq_putc() in three functions

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 2f227605
...@@ -232,7 +232,7 @@ static void pinconf_show_config(struct seq_file *s, struct pinctrl_dev *pctldev, ...@@ -232,7 +232,7 @@ static void pinconf_show_config(struct seq_file *s, struct pinctrl_dev *pctldev,
configs[i]); configs[i]);
else else
seq_printf(s, "%08lx", configs[i]); seq_printf(s, "%08lx", configs[i]);
seq_puts(s, "\n"); seq_putc(s, '\n');
} }
} }
...@@ -325,8 +325,7 @@ static int pinconf_pins_show(struct seq_file *s, void *what) ...@@ -325,8 +325,7 @@ static int pinconf_pins_show(struct seq_file *s, void *what)
seq_printf(s, "pin %d (%s): ", pin, desc->name); seq_printf(s, "pin %d (%s): ", pin, desc->name);
pinconf_dump_pin(pctldev, s, pin); pinconf_dump_pin(pctldev, s, pin);
seq_putc(s, '\n');
seq_printf(s, "\n");
} }
mutex_unlock(&pctldev->mutex); mutex_unlock(&pctldev->mutex);
...@@ -361,8 +360,7 @@ static int pinconf_groups_show(struct seq_file *s, void *what) ...@@ -361,8 +360,7 @@ static int pinconf_groups_show(struct seq_file *s, void *what)
seq_printf(s, "%u (%s): ", selector, gname); seq_printf(s, "%u (%s): ", selector, gname);
pinconf_dump_group(pctldev, s, selector, gname); pinconf_dump_group(pctldev, s, selector, gname);
seq_printf(s, "\n"); seq_putc(s, '\n');
selector++; selector++;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment