diff mbox series

pinctrl: core: Use seq_putc() in three functions

Message ID 3a52f0c5-85c5-4077-b6cd-504cc5383817@web.de
State New
Headers show
Series pinctrl: core: Use seq_putc() in three functions | expand

Commit Message

Markus Elfring July 13, 2024, 2:15 p.m. UTC
From: Markus Elfring <elfring@users.sourceforge.net>
Date: Sat, 13 Jul 2024 16:10:31 +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/pinctrl/core.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

--
2.45.2
diff mbox series

Patch

diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c
index 314ab93d7691..6d61101f488a 100644
--- a/drivers/pinctrl/core.c
+++ b/drivers/pinctrl/core.c
@@ -1707,7 +1707,7 @@  static int pinctrl_pins_show(struct seq_file *s, void *what)
 		if (ops->pin_dbg_show)
 			ops->pin_dbg_show(pctldev, s, pin);

-		seq_puts(s, "\n");
+		seq_putc(s, '\n');
 	}

 	mutex_unlock(&pctldev->mutex);
@@ -1751,7 +1751,7 @@  static int pinctrl_groups_show(struct seq_file *s, void *what)
 				}
 				seq_printf(s, "pin %d (%s)\n", pins[i], pname);
 			}
-			seq_puts(s, "\n");
+			seq_putc(s, '\n');
 		}
 		selector++;
 	}
@@ -1814,7 +1814,7 @@  static int pinctrl_devices_show(struct seq_file *s, void *what)
 			seq_puts(s, "yes");
 		else
 			seq_puts(s, "no");
-		seq_puts(s, "\n");
+		seq_putc(s, '\n');
 	}

 	mutex_unlock(&pinctrldev_list_mutex);