Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Markus Elfring and committed by
Linus Walleij
b5cd7802 7928b2cb

+1 -1
+1 -1
drivers/gpio/gpio-wm831x.c
··· 182 182 dev_err(wm831x->dev, 183 183 "GPIO control %d read failed: %d\n", 184 184 gpio, reg); 185 - seq_printf(s, "\n"); 185 + seq_putc(s, '\n'); 186 186 continue; 187 187 } 188 188