[PATCH] gpio: gpiolib: use seq_puts() for plain strings

Chen Jung Ku posted 1 patch 1 week, 6 days ago
drivers/gpio/gpiolib.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
[PATCH] gpio: gpiolib: use seq_puts() for plain strings
Posted by Chen Jung Ku 1 week, 6 days ago
Replace seq_printf() with seq_puts() where the format string is a
plain string literal with no format specifiers.

No functional change intended.

Signed-off-by: Chen Jung Ku <ku.loong@gapp.nthu.edu.tw>
---
 drivers/gpio/gpiolib.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 1e6dce430dca..ac2b9546d843 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -5498,8 +5498,8 @@ static int gpiolib_seq_show(struct seq_file *s, void *v)
 	if (gc->label)
 		seq_printf(s, ", %s", gc->label);
 	if (gc->can_sleep)
-		seq_printf(s, ", can sleep");
-	seq_printf(s, ":\n");
+		seq_puts(s, ", can sleep");
+	seq_puts(s, ":\n");
 
 	if (gc->dbg_show)
 		gc->dbg_show(s, gc);
-- 
2.43.0
Re: [PATCH] gpio: gpiolib: use seq_puts() for plain strings
Posted by Bartosz Golaszewski 1 week, 5 days ago
On Tue, 26 May 2026 20:19:05 +0800, Chen Jung Ku wrote:
> Replace seq_printf() with seq_puts() where the format string is a
> plain string literal with no format specifiers.
> 
> No functional change intended.
> 
> 

Applied, thanks!

[1/1] gpio: gpiolib: use seq_puts() for plain strings
      https://git.kernel.org/brgl/c/20de1f993ea6ca9a9d15fe2e433f9e58841999f0

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>