Message ID | 002101cefc73$2d22ff70$8768fe50$%han@samsung.com |
---|---|
State | Accepted |
Headers | show |
On Thu, Dec 19, 2013 at 01:31:24PM +0900, Jingoo Han wrote: > 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(-) All three patches applied, thanks! Thierry
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"); } }
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(-)