pinctrl: core: Use seq_putc() in three functions
Subsystems (3)
PATCH 1/1 pinctrl: core: Use seq_putc() in three functions
From: Markus Elfring <[email protected]>
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 <[email protected]>
--- drivers/pinctrl/core.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/pinctrl/core.c +3 -3
@@ -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);
--
2.45.2