Skip to contentSkip to conversation

pinctrl: pinmux: Use seq_putc() in pinmux_pins_show()

PATCH In review SF Markus Elfring 2 participants 2 messages Jan 13, 2018 – Jan 16, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 pinctrl: pinmux: Use seq_putc() in pinmux_pins_show()

From: Markus Elfring <[email protected]>
Date: Sat, 13 Jan 2018 11:33:47 +0100

A single character (line break) should be put into a sequence. Thus use the corresponding function "seq_putc".

This issue was detected by using the Coccinelle software.

---
 drivers/pinctrl/pinmux.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/pinmux.c +1 -1
index 55502fc4479c..139a004a5e71 100644
@@ -619,7 +619,7 @@ static int pinmux_pins_show(struct seq_file *s, void *what)
 				   pctlops->get_group_name(pctldev,
 					desc->mux_setting->group));
 		else
-			seq_printf(s, "\n");
+			seq_putc(s, '\n');
 	}
 
 	mutex_unlock(&pctldev->mutex);
Signature · 1 line
2.15.1
#1 lore raw
Quoted 9 lines · SF Markus Elfring

From: Markus Elfring <[email protected]>
Date: Sat, 13 Jan 2018 11:33:47 +0100

A single character (line break) should be put into a sequence. Thus use the corresponding function "seq_putc".

This issue was detected by using the Coccinelle software.

Patch applied.

Yours,
Linus Walleij