Re: [PATCH V2] regulator: dbx500: use seq_puts() instead of seq_printf()
On Wed, Mar 19, 2014 at 09:26:17AM +0900, Jingoo Han wrote: > For a constant format without additional arguments, use seq_puts() > instead of seq_printf(). Also, it fixes the following checkpatch > warning. Applied, thanks, but please in future send incremental fixes for already applied patches. signature.asc Description: Digital signature
Re: [PATCH V2] regulator: dbx500: use seq_puts() instead of seq_printf()
On Wed, Mar 19, 2014 at 09:26:17AM +0900, Jingoo Han wrote: For a constant format without additional arguments, use seq_puts() instead of seq_printf(). Also, it fixes the following checkpatch warning. Applied, thanks, but please in future send incremental fixes for already applied patches. signature.asc Description: Digital signature
[PATCH V2] 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 --- Changes since v1: - Removed unnecessary seq_puts() in ux500_regulator_power_state_cnt_print() in order to prevent build error, per Fengguang Wu. drivers/regulator/dbx500-prcmu.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/dbx500-prcmu.c b/drivers/regulator/dbx500-prcmu.c index ce89f78..ac2c1d6 100644 --- a/drivers/regulator/dbx500-prcmu.c +++ b/drivers/regulator/dbx500-prcmu.c @@ -127,9 +127,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"); -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
[PATCH V2] 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@samsung.com --- Changes since v1: - Removed unnecessary seq_puts() in ux500_regulator_power_state_cnt_print() in order to prevent build error, per Fengguang Wu. drivers/regulator/dbx500-prcmu.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/dbx500-prcmu.c b/drivers/regulator/dbx500-prcmu.c index ce89f78..ac2c1d6 100644 --- a/drivers/regulator/dbx500-prcmu.c +++ b/drivers/regulator/dbx500-prcmu.c @@ -127,9 +127,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); -- 1.7.10.4 -- To unsubscribe from this list: send the line unsubscribe linux-kernel in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/