[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <64ab3ba9-6cfa-fd59-976c-8f22b2b9a2c5@users.sourceforge.net>
Date: Tue, 2 May 2017 11:22:45 +0200
From: SF Markus Elfring <elfring@...rs.sourceforge.net>
To: linux-gpio@...r.kernel.org,
Linus Walleij <linus.walleij@...aro.org>
Cc: LKML <linux-kernel@...r.kernel.org>,
kernel-janitors@...r.kernel.org
Subject: [PATCH 2/9] pinctrl: Combine two seq_puts() calls into one call in
two functions
From: Markus Elfring <elfring@...rs.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@...rs.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
Powered by blists - more mailing lists