Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: dbx500: use seq_puts() instead of seq_printf()

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

WARNING: Prefer seq_puts to seq_printf

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>

authored by

Jingoo Han and committed by
Mark Brown
80c48e72 e77addc5

+2 -2
+2 -2
drivers/regulator/dbx500-prcmu.c
··· 129 129 int i; 130 130 131 131 /* print dump header */ 132 - err = seq_printf(s, "ux500-regulator status:\n"); 132 + err = seq_puts(s, "ux500-regulator status:\n"); 133 133 if (err < 0) 134 - dev_err(dev, "seq_printf overflow\n"); 134 + dev_err(dev, "seq_puts overflow\n"); 135 135 136 136 err = seq_printf(s, "%31s : %8s : %8s\n", "current", 137 137 "before", "after");