pinctrl: mvebu: Use seq_puts() in mvebu_pinconf_group_dbg_show()
authorMarkus Elfring <elfring@users.sourceforge.net>
Thu, 12 Jan 2017 15:51:00 +0000 (16:51 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Tue, 17 Jan 2017 14:56:01 +0000 (15:56 +0100)
Strings which did not contain data format specifications 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: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/mvebu/pinctrl-mvebu.c

index 5b49bcda5e799ee0feb255404401b021aa0cba59..5dc29ba128c48ab8431a38095141f0e44b8ed88f 100644 (file)
@@ -195,11 +195,12 @@ static void mvebu_pinconf_group_dbg_show(struct pinctrl_dev *pctldev,
                                seq_printf(s, "o");
                        seq_printf(s, ")");
                }
-       } else
-               seq_printf(s, "current: UNKNOWN");
+       } else {
+               seq_puts(s, "current: UNKNOWN");
+       }
 
        if (grp->num_settings > 1) {
-               seq_printf(s, ", available = [");
+               seq_puts(s, ", available = [");
                for (n = 0; n < grp->num_settings; n++) {
                        if (curr == &grp->settings[n])
                                continue;
@@ -222,7 +223,7 @@ static void mvebu_pinconf_group_dbg_show(struct pinctrl_dev *pctldev,
                                seq_printf(s, ")");
                        }
                }
-               seq_printf(s, " ]");
+               seq_puts(s, " ]");
        }
 }