]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
gpio: gpiolib: use seq_puts() for plain strings
authorChen Jung Ku <ku.loong@gapp.nthu.edu.tw>
Tue, 26 May 2026 12:19:05 +0000 (20:19 +0800)
committerBartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Wed, 27 May 2026 07:59:29 +0000 (09:59 +0200)
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>
Link: https://patch.msgid.link/20260526121905.46345-1-ku.loong@gapp.nthu.edu.tw
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
drivers/gpio/gpiolib.c

index 9643af18e8abd1d568fd2841e8e4c9b0f3804639..c72eec54cb196f5268ec482074a0fad2b2631650 100644 (file)
@@ -5520,8 +5520,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);