Skip to content

Commit

Permalink
pinctrl: Use seq_putc() in three functions
Browse files Browse the repository at this point in the history
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: Markus Elfring <[email protected]>
Signed-off-by: Linus Walleij <[email protected]>
  • Loading branch information
elfring authored and linusw committed May 22, 2017
1 parent 2f22760 commit 47352a6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions drivers/pinctrl/pinconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ static void pinconf_show_config(struct seq_file *s, struct pinctrl_dev *pctldev,
configs[i]);
else
seq_printf(s, "%08lx", configs[i]);
seq_puts(s, "\n");
seq_putc(s, '\n');
}
}

Expand Down Expand Up @@ -325,8 +325,7 @@ static int pinconf_pins_show(struct seq_file *s, void *what)
seq_printf(s, "pin %d (%s): ", pin, desc->name);

pinconf_dump_pin(pctldev, s, pin);

seq_printf(s, "\n");
seq_putc(s, '\n');
}

mutex_unlock(&pctldev->mutex);
Expand Down Expand Up @@ -361,8 +360,7 @@ static int pinconf_groups_show(struct seq_file *s, void *what)

seq_printf(s, "%u (%s): ", selector, gname);
pinconf_dump_group(pctldev, s, selector, gname);
seq_printf(s, "\n");

seq_putc(s, '\n');
selector++;
}

Expand Down

0 comments on commit 47352a6

Please sign in to comment.