regulator: core: Use seq_putc() in regulator_summary_show_subtree()
Subsystems (2)
PATCH 1/1 regulator: core: Use seq_putc() in regulator_summary_show_subtree()
From: Markus Elfring <[email protected]>
Date: Sat, 13 Jul 2024 16:36:30 +0200
Single characters (line breaks) should be put into a sequence. Thus use the corresponding function “seq_putc”.
This issue was transformed by using the Coccinelle software.
Signed-off-by Markus Elfring <[email protected]>
--- drivers/regulator/core.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/regulator/core.c +2 -2
@@ -6099,7 +6099,7 @@ static void regulator_summary_show_subtree(struct seq_file *s, } } -seq_puts (s,"\n" ); +seq_putc (s,'\n' );list_for_each_entry (consumer, &rdev->consumer_list, list) {if (consumer->dev && consumer->dev->class == ®ulator_class)
@@ -6125,7 +6125,7 @@ static void regulator_summary_show_subtree(struct seq_file *s,break ; } -seq_puts (s,"\n" ); +seq_putc (s,'\n' ); } summary_data.s = s;
--
2.45.2