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:
7928b2c
)
gpio-wm831x: Use seq_putc() in wm831x_gpio_dbg_show()
author
Markus Elfring
<elfring@users.sourceforge.net>
Fri, 12 Jan 2018 20:30:09 +0000
(21:30 +0100)
committer
Linus Walleij
<linus.walleij@linaro.org>
Mon, 12 Feb 2018 08:36:06 +0000
(09:36 +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>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-wm831x.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpio-wm831x.c
b/drivers/gpio/gpio-wm831x.c
index
938bbe3
..
324813e
100644
(file)
--- a/
drivers/gpio/gpio-wm831x.c
+++ b/
drivers/gpio/gpio-wm831x.c
@@
-182,7
+182,7
@@
static void wm831x_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
dev_err(wm831x->dev,
"GPIO control %d read failed: %d\n",
gpio, reg);
- seq_p
rintf(s, "\n"
);
+ seq_p
utc(s, '\n'
);
continue;
}