Commit 420dc616 authored by Markus Elfring's avatar Markus Elfring Committed by Linus Walleij

pinctrl: mvebu: Use seq_puts() in mvebu_pinconf_group_dbg_show()

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 39c7c5ab
...@@ -195,11 +195,12 @@ static void mvebu_pinconf_group_dbg_show(struct pinctrl_dev *pctldev, ...@@ -195,11 +195,12 @@ static void mvebu_pinconf_group_dbg_show(struct pinctrl_dev *pctldev,
seq_printf(s, "o"); seq_printf(s, "o");
seq_printf(s, ")"); seq_printf(s, ")");
} }
} else } else {
seq_printf(s, "current: UNKNOWN"); seq_puts(s, "current: UNKNOWN");
}
if (grp->num_settings > 1) { if (grp->num_settings > 1) {
seq_printf(s, ", available = ["); seq_puts(s, ", available = [");
for (n = 0; n < grp->num_settings; n++) { for (n = 0; n < grp->num_settings; n++) {
if (curr == &grp->settings[n]) if (curr == &grp->settings[n])
continue; continue;
...@@ -222,7 +223,7 @@ static void mvebu_pinconf_group_dbg_show(struct pinctrl_dev *pctldev, ...@@ -222,7 +223,7 @@ static void mvebu_pinconf_group_dbg_show(struct pinctrl_dev *pctldev,
seq_printf(s, ")"); seq_printf(s, ")");
} }
} }
seq_printf(s, " ]"); seq_puts(s, " ]");
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment