Skip to content

Commit

Permalink
pwm: use seq_puts() instead of seq_printf()
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
  • Loading branch information
Jingoo Han authored and Thierry Reding committed Dec 20, 2013
1 parent 6a68335 commit adcba1e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/pwm/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}
}

Expand Down

0 comments on commit adcba1e

Please sign in to comment.