pinctrl: Use seq_putc() in pinctrl_maps_show()
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 2 May 2017 08:47:35 +0000 (10:47 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 22 May 2017 08:39:24 +0000 (10:39 +0200)
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>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/core.c

index 1653cbda6a8299b33b5cebae92bd4710e41412a4..7df16771fa13dcd121e562beb367ff4a3cca7a36 100644 (file)
@@ -1732,7 +1732,7 @@ static int pinctrl_maps_show(struct seq_file *s, void *what)
                        break;
                }
 
-               seq_printf(s, "\n");
+               seq_putc(s, '\n');
        }
        mutex_unlock(&pinctrl_maps_mutex);