projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
02c9d28
)
pinctrl: pinmux: Use seq_putc() in pinmux_pins_show()
author
Markus Elfring
<elfring@users.sourceforge.net>
Sat, 13 Jan 2018 10:33:47 +0000
(11:33 +0100)
committer
Linus Walleij
<linus.walleij@linaro.org>
Tue, 16 Jan 2018 10:07:18 +0000
(11:07 +0100)
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>
drivers/pinctrl/pinmux.c
patch
|
blob
|
history
diff --git
a/drivers/pinctrl/pinmux.c
b/drivers/pinctrl/pinmux.c
index
82b18ef
..
b8e9bda
100644
(file)
--- 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)
pctlops->get_group_name(pctldev,
desc->mux_setting->group));
else
- seq_p
rintf(s, "\n"
);
+ seq_p
utc(s, '\n'
);
}
mutex_unlock(&pctldev->mutex);