pinctrl: sh-pfc: Use seq_puts() in sh_pfc_pin_dbg_show()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sat, 6 Jan 2018 20:50:20 +0000 (21:50 +0100)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Mon, 12 Feb 2018 14:27:58 +0000 (15:27 +0100)
A string which did not contain a data format specification should be put
into a sequence. Thus use the corresponding function "seq_puts".

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
drivers/pinctrl/sh-pfc/pinctrl.c

index 736634a..70db216 100644 (file)
@@ -75,7 +75,7 @@ static int sh_pfc_get_group_pins(struct pinctrl_dev *pctldev, unsigned selector,
 static void sh_pfc_pin_dbg_show(struct pinctrl_dev *pctldev, struct seq_file *s,
                                unsigned offset)
 {
-       seq_printf(s, "%s", DRV_NAME);
+       seq_puts(s, DRV_NAME);
 }
 
 #ifdef CONFIG_OF