[PATCH] pwm: Use another seq_putc() call in pwm_dbg_show()

Markus Elfring posted 1 patch 1 week ago
drivers/pwm/core.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
[PATCH] pwm: Use another seq_putc() call in pwm_dbg_show()
Posted by Markus Elfring 1 week ago
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Fri, 17 Jul 2026 11:33:55 +0200

A single line break should be put into a sequence.
Thus use the corresponding function “seq_putc”.

The source code was transformed by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/pwm/core.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c
index fa0f8f1f6ed0..c2d77082c549 100644
--- a/drivers/pwm/core.c
+++ b/drivers/pwm/core.c
@@ -2647,8 +2647,7 @@ static void pwm_dbg_show(struct pwm_chip *chip, struct seq_file *s)
 		if (test_bit(PWMF_REQUESTED, &pwm->flags))
 			seq_puts(s, " requested");
 
-		seq_puts(s, "\n");
-
+		seq_putc(s, '\n');
 		seq_printf(s, "  requested configuration: %3sabled, %llu/%llu ns, %s polarity",
 			   state.enabled ? "en" : "dis", state.duty_cycle, state.period,
 			   state.polarity ? "inverse" : "normal");
-- 
2.55.0
Re: [PATCH] pwm: Use another seq_putc() call in pwm_dbg_show()
Posted by Uwe Kleine-König 5 days, 11 hours ago
On Fri, Jul 17, 2026 at 11:40:45AM +0200, Markus Elfring wrote:
> From: Markus Elfring <elfring@users.sourceforge.net>
> Date: Fri, 17 Jul 2026 11:33:55 +0200
> 
> A single line break should be put into a sequence.
> Thus use the corresponding function “seq_putc”.
> 
> The source code was transformed by using the Coccinelle software.
> 
> Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>

I squashed this into the commit created from the original patch #2.

Thanks
Uwe