diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2018-01-13 05:33:47 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-01-16 05:07:18 -0500 |
commit | ffd10c2ec771dde7005d29a255d943152311006d (patch) | |
tree | 3d05da43f608bf1ebe81dcab55e1eb50427ec92e | |
parent | 02c9d285ff321c306a321b5f7df054d194dec52f (diff) |
pinctrl: pinmux: Use seq_putc() in pinmux_pins_show()
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 <elfring@users.sourceforge.net>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/pinctrl/pinmux.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/pinmux.c b/drivers/pinctrl/pinmux.c index 82b18ef44ee4..b8e9bda8ec98 100644 --- a/drivers/pinctrl/pinmux.c +++ b/drivers/pinctrl/pinmux.c | |||
@@ -617,7 +617,7 @@ static int pinmux_pins_show(struct seq_file *s, void *what) | |||
617 | pctlops->get_group_name(pctldev, | 617 | pctlops->get_group_name(pctldev, |
618 | desc->mux_setting->group)); | 618 | desc->mux_setting->group)); |
619 | else | 619 | else |
620 | seq_printf(s, "\n"); | 620 | seq_putc(s, '\n'); |
621 | } | 621 | } |
622 | 622 | ||
623 | mutex_unlock(&pctldev->mutex); | 623 | mutex_unlock(&pctldev->mutex); |