public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Markus Elfring <Markus.Elfring@web.de>
To: kernel-janitors@vger.kernel.org,
	Liam Girdwood <lgirdwood@gmail.com>,
	Mark Brown <broonie@kernel.org>
Cc: LKML <linux-kernel@vger.kernel.org>
Subject: [PATCH] regulator: core: Use seq_putc() in regulator_summary_show_subtree()
Date: Sat, 13 Jul 2024 16:43:17 +0200	[thread overview]
Message-ID: <9142662e-e709-48fa-9ac2-a4fc16e6228c@web.de> (raw)

From: Markus Elfring <elfring@users.sourceforge.net>
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 <elfring@users.sourceforge.net>
---
 drivers/regulator/core.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/regulator/core.c b/drivers/regulator/core.c
index 7674b7f2df14..3200bf129fc6 100644
--- a/drivers/regulator/core.c
+++ b/drivers/regulator/core.c
@@ -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 == &regulator_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


                 reply	other threads:[~2024-07-13 14:43 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9142662e-e709-48fa-9ac2-a4fc16e6228c@web.de \
    --to=markus.elfring@web.de \
    --cc=broonie@kernel.org \
    --cc=kernel-janitors@vger.kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox