linux-pwm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] pwm: core: use seq_puts() instead of seq_printf()
@ 2013-12-19  4:31 Jingoo Han
  2013-12-19  4:32 ` [PATCH 2/3] pwm: pwm-ep93xx: split module author names Jingoo Han
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Jingoo Han @ 2013-12-19  4:31 UTC (permalink / raw)
  To: 'Thierry Reding'; +Cc: linux-pwm, 'Jingoo Han'

For a constant format without additional arguments, use seq_puts()
instead of seq_printf(). Also, the following checkpatch warning is
fixed.

  WARNING: Prefer seq_puts to seq_printf

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
---
 drivers/pwm/core.c |    6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/pwm/core.c b/drivers/pwm/core.c
index 2ca9504..a804713 100644
--- a/drivers/pwm/core.c
+++ b/drivers/pwm/core.c
@@ -808,12 +808,12 @@ static void pwm_dbg_show(struct pwm_chip *chip, struct seq_file *s)
 		seq_printf(s, " pwm-%-3d (%-20.20s):", i, pwm->label);
 
 		if (test_bit(PWMF_REQUESTED, &pwm->flags))
-			seq_printf(s, " requested");
+			seq_puts(s, " requested");
 
 		if (test_bit(PWMF_ENABLED, &pwm->flags))
-			seq_printf(s, " enabled");
+			seq_puts(s, " enabled");
 
-		seq_printf(s, "\n");
+		seq_puts(s, "\n");
 	}
 }
 
-- 
1.7.10.4



^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-12-20  9:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-19  4:31 [PATCH 1/3] pwm: core: use seq_puts() instead of seq_printf() Jingoo Han
2013-12-19  4:32 ` [PATCH 2/3] pwm: pwm-ep93xx: split module author names Jingoo Han
2013-12-19  4:34 ` [PATCH 3/3] pwm: pxa: remove unnecessary space before tabs Jingoo Han
2013-12-20  9:58 ` [PATCH 1/3] pwm: core: use seq_puts() instead of seq_printf() Thierry Reding

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).