From: Markus Elfring Date: Fri, 12 Jan 2018 20:30:09 +0000 (+0100) Subject: gpio-wm831x: Use seq_putc() in wm831x_gpio_dbg_show() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=b5cd7802dd7c10c5be388c8820d8e753f4f8fce7;p=linux.git 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 Acked-by: Charles Keepax Signed-off-by: Linus Walleij --- diff --git a/drivers/gpio/gpio-wm831x.c b/drivers/gpio/gpio-wm831x.c index 938bbe3f831ca..324813e8304e5 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; }