[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <85344479-907c-adf7-6ae6-6d6acff2c1b1@users.sourceforge.net>
Date: Fri, 12 Jan 2018 21:37:53 +0100
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: linux-gpio@...r.kernel.org, patches@...nsource.cirrus.com,
Linus Walleij <linus.walleij@...aro.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: [PATCH] gpio-wm831x: Use seq_putc() in wm831x_gpio_dbg_show()
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Fri, 12 Jan 2018 21:30:09 +0100
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@...rs.sourceforge.net>
---
drivers/gpio/gpio-wm831x.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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;
}
--
2.15.1
Powered by blists - more mailing lists