[<prev] [next>] [day] [month] [year] [list]
Message-ID: <3a52f0c5-85c5-4077-b6cd-504cc5383817@web.de>
Date: Sat, 13 Jul 2024 16:15:28 +0200
From: Markus Elfring <Markus.Elfring@....de>
To: linux-gpio@...r.kernel.org, kernel-janitors@...r.kernel.org,
Linus Walleij <linus.walleij@...aro.org>
Cc: LKML <linux-kernel@...r.kernel.org>
Subject: [PATCH] pinctrl: core: Use seq_putc() in three functions
From: Markus Elfring <elfring@...rs.sourceforge.net>
Date: Sat, 13 Jul 2024 16:10:31 +0200
Single characters (line breaks) should be put into a sequence.
Thus use the corresponding function “seq_putc”.
This issue was transformed by using the Coccinelle software.
Signed-off-by: Markus Elfring <elfring@...rs.sourceforge.net>
---
drivers/pinctrl/core.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c
index 314ab93d7691..6d61101f488a 100644
--- a/drivers/pinctrl/core.c
+++ b/drivers/pinctrl/core.c
@@ -1707,7 +1707,7 @@ static int pinctrl_pins_show(struct seq_file *s, void *what)
if (ops->pin_dbg_show)
ops->pin_dbg_show(pctldev, s, pin);
- seq_puts(s, "\n");
+ seq_putc(s, '\n');
}
mutex_unlock(&pctldev->mutex);
@@ -1751,7 +1751,7 @@ static int pinctrl_groups_show(struct seq_file *s, void *what)
}
seq_printf(s, "pin %d (%s)\n", pins[i], pname);
}
- seq_puts(s, "\n");
+ seq_putc(s, '\n');
}
selector++;
}
@@ -1814,7 +1814,7 @@ static int pinctrl_devices_show(struct seq_file *s, void *what)
seq_puts(s, "yes");
else
seq_puts(s, "no");
- seq_puts(s, "\n");
+ seq_putc(s, '\n');
}
mutex_unlock(&pinctrldev_list_mutex);
--
2.45.2
Powered by blists - more mailing lists