diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2018-01-12 21:30:09 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-02-12 09:36:06 +0100 |
commit | b5cd7802dd7c10c5be388c8820d8e753f4f8fce7 (patch) | |
tree | 4573d169b8e9a0d2dacdf2e9d8754ee14f200faa | |
parent | Linux 4.16-rc1 (diff) | |
download | linux-b5cd7802dd7c10c5be388c8820d8e753f4f8fce7.tar.xz linux-b5cd7802dd7c10c5be388c8820d8e753f4f8fce7.zip |
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: Markus Elfring <elfring@users.sourceforge.net>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
-rw-r--r-- | drivers/gpio/gpio-wm831x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-wm831x.c b/drivers/gpio/gpio-wm831x.c index 938bbe3f831c..324813e8304e 100644 --- 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_printf(s, "\n"); + seq_putc(s, '\n'); continue; } |