regulator: dbx500: use seq_puts() instead of seq_printf()
authorJingoo Han <jg1.han@samsung.com>
Wed, 19 Mar 2014 00:26:17 +0000 (09:26 +0900)
committerMark Brown <broonie@linaro.org>
Wed, 19 Mar 2014 10:19:49 +0000 (10:19 +0000)
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>
drivers/regulator/dbx500-prcmu.c

index 538478883ae29fe346c84ad0f39be22867eaf51e..2d16b9f16de73f5ce42ffb2370bba98c9bccf20b 100644 (file)
@@ -129,9 +129,9 @@ static int ux500_regulator_status_print(struct seq_file *s, void *p)
        int i;
 
        /* print dump header */
-       err = seq_printf(s, "ux500-regulator status:\n");
+       err = seq_puts(s, "ux500-regulator status:\n");
        if (err < 0)
-               dev_err(dev, "seq_printf overflow\n");
+               dev_err(dev, "seq_puts overflow\n");
 
        err = seq_printf(s, "%31s : %8s : %8s\n", "current",
                "before", "after");