[PATCH] pwm: Use another seq_putc() call in pwm_dbg_show()
Markus Elfring <[email protected]> Fri, 17 Jul 2026 11:40:45 +0200
| Newsgroups | org.kernel.vger.kernel-janitors,org.kernel.vger.linux-kernel,org.kernel.vger.linux-pwm |
|---|---|
| Message-ID | <[email protected]> |
From: Markus Elfring <[email protected]> Date: Fri, 17 Jul 2026 11:33:55 +0200 A single line break should be put into a sequence. Thus use the corresponding function =E2=80=9Cseq_putc=E2=80=9D. The source code was transformed by using the Coccinelle software. Signed-off-by: Markus Elfring <[email protected]> =2D-- 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 =2D-- a/drivers/pwm/core.c +++ b/drivers/pwm/core.c @@ -2647,8 +2647,7 @@ static void pwm_dbg_show(struct pwm_chip *chip, stru= ct seq_file *s) if (test_bit(PWMF_REQUESTED, &pwm->flags)) seq_puts(s, " requested"); =20 - seq_puts(s, "\n"); - + seq_putc(s, '\n'); seq_printf(s, " requested configuration: %3sabled, %llu/%llu ns, %s po= larity", state.enabled ? "en" : "dis", state.duty_cycle, state.period, state.polarity ? "inverse" : "normal"); =2D-=20 2.55.0