Commit b5cd7802 authored by Markus Elfring's avatar Markus Elfring Committed by Linus Walleij

gpio-wm831x: Use seq_putc() in wm831x_gpio_dbg_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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 7928b2cb
...@@ -182,7 +182,7 @@ static void wm831x_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip) ...@@ -182,7 +182,7 @@ static void wm831x_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
dev_err(wm831x->dev, dev_err(wm831x->dev,
"GPIO control %d read failed: %d\n", "GPIO control %d read failed: %d\n",
gpio, reg); gpio, reg);
seq_printf(s, "\n"); seq_putc(s, '\n');
continue; continue;
} }
......
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