diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2018-01-12 19:30:50 +0100 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2018-01-17 07:44:15 +0100 |
commit | 0d83a5eb65095b84b5b000684407fc171d7872e4 (patch) | |
tree | 84295f6578287dd874c874c7338763c766669303 /drivers/gpio | |
parent | 7d18f0a14aa6a0d6bad39111c1fb655f07f71d59 (diff) | |
download | linux-0d83a5eb65095b84b5b000684407fc171d7872e4.tar.gz linux-0d83a5eb65095b84b5b000684407fc171d7872e4.tar.bz2 linux-0d83a5eb65095b84b5b000684407fc171d7872e4.zip |
gpio: stmpe: Use seq_putc() in stmpe_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>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r-- | drivers/gpio/gpio-stmpe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-stmpe.c b/drivers/gpio/gpio-stmpe.c index 3b6efce8e681..8061c70c4b95 100644 --- a/drivers/gpio/gpio-stmpe.c +++ b/drivers/gpio/gpio-stmpe.c @@ -350,7 +350,7 @@ static void stmpe_dbg_show(struct seq_file *s, struct gpio_chip *gc) for (i = 0; i < gc->ngpio; i++, gpio++) { stmpe_dbg_show_one(s, gc, i, gpio); - seq_printf(s, "\n"); + seq_putc(s, '\n'); } } |