Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1634292

[PATCH 2/9] pinctrl: Combine two seq_puts() calls into one call in two functions

From SF Markus Elfring <elfring@users.sourceforge.net>
Newsgroups linux.kernel
Subject [PATCH 2/9] pinctrl: Combine two seq_puts() calls into one call in two functions
Date 2017-05-02 11:30 +0200
Message-ID <tCCi7-4Jn-31@gated-at.bofh.it> (permalink)
References <tCCi5-4Jn-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


From: Markus Elfring <elfring@users.sourceforge.net>
Date: Mon, 1 May 2017 22:42:13 +0200

Some text was put into a sequence by two separate function calls.
Print the same data by a single function call instead.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
---
 drivers/pinctrl/pinconf.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/drivers/pinctrl/pinconf.c b/drivers/pinctrl/pinconf.c
index 1a3fbdf81ecb..a14ae8601b39 100644
--- a/drivers/pinctrl/pinconf.c
+++ b/drivers/pinctrl/pinconf.c
@@ -307,9 +307,9 @@ static int pinconf_pins_show(struct seq_file *s, void *what)
 	struct pinctrl_dev *pctldev = s->private;
 	unsigned i, pin;
 
-	seq_puts(s, "Pin config settings per pin\n");
-	seq_puts(s, "Format: pin (name): configs\n");
-
+	seq_puts(s,
+		 "Pin config settings per pin\n"
+		 "Format: pin (name): configs\n");
 	mutex_lock(&pctldev->mutex);
 
 	/* The pin number can be retrived from the pin controller descriptor */
@@ -352,8 +352,9 @@ static int pinconf_groups_show(struct seq_file *s, void *what)
 	unsigned ngroups = pctlops->get_groups_count(pctldev);
 	unsigned selector = 0;
 
-	seq_puts(s, "Pin config settings per pin group\n");
-	seq_puts(s, "Format: group (name): configs\n");
+	seq_puts(s,
+		 "Pin config settings per pin group\n"
+		 "Format: group (name): configs\n");
 
 	while (selector < ngroups) {
 		const char *gname = pctlops->get_group_name(pctldev, selector);
-- 
2.12.2

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/9] pinctrl: Fine-tuning for some function implementations SF Markus Elfring <elfring@users.sourceforge.net> - 2017-05-02 11:30 +0200
  [PATCH 8/9] pinctrl: Use seq_putc() in pinctrl_maps_show() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-05-02 11:30 +0200
    Re: [PATCH 8/9] pinctrl: Use seq_putc() in pinctrl_maps_show() Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-05-03 19:50 +0200
    Re: [PATCH 8/9] pinctrl: Use seq_putc() in pinctrl_maps_show() Linus Walleij <linus.walleij@linaro.org> - 2017-05-11 15:30 +0200
  [PATCH 6/9] pinctrl: Combine substrings for a message in  pin_config_group_get() SF Markus Elfring <elfring@users.sourceforge.net> - 2017-05-02 11:30 +0200
    Re: [PATCH 6/9] pinctrl: Combine substrings for a message in pin_config_group_get() Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-05-03 20:00 +0200
    Re: [PATCH 6/9] pinctrl: Combine substrings for a message in pin_config_group_get() Linus Walleij <linus.walleij@linaro.org> - 2017-05-11 15:30 +0200
  [PATCH 2/9] pinctrl: Combine two seq_puts() calls into one call in  two functions SF Markus Elfring <elfring@users.sourceforge.net> - 2017-05-02 11:30 +0200
    Re: [PATCH 2/9] pinctrl: Combine two seq_puts() calls into one call  in two functions Andy Shevchenko <andy.shevchenko@gmail.com> - 2017-05-03 19:50 +0200

csiph-web