mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 16:37:50 +00:00
pinctrl: Replace two seq_printf() calls by seq_puts() in pinconf_show_map()
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>
This commit is contained in:
parent
add7bfceac
commit
de2eae26de
1 changed files with 2 additions and 2 deletions
|
@ -244,10 +244,10 @@ void pinconf_show_map(struct seq_file *s, struct pinctrl_map const *map)
|
||||||
|
|
||||||
switch (map->type) {
|
switch (map->type) {
|
||||||
case PIN_MAP_TYPE_CONFIGS_PIN:
|
case PIN_MAP_TYPE_CONFIGS_PIN:
|
||||||
seq_printf(s, "pin ");
|
seq_puts(s, "pin ");
|
||||||
break;
|
break;
|
||||||
case PIN_MAP_TYPE_CONFIGS_GROUP:
|
case PIN_MAP_TYPE_CONFIGS_GROUP:
|
||||||
seq_printf(s, "group ");
|
seq_puts(s, "group ");
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in a new issue