Skip to content

Commit de2eae2

Browse files
elfringLinus Walleij
authored andcommitted
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>
1 parent add7bfc commit de2eae2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/pinctrl/pinconf.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,10 @@ void pinconf_show_map(struct seq_file *s, struct pinctrl_map const *map)
244244

245245
switch (map->type) {
246246
case PIN_MAP_TYPE_CONFIGS_PIN:
247-
seq_printf(s, "pin ");
247+
seq_puts(s, "pin ");
248248
break;
249249
case PIN_MAP_TYPE_CONFIGS_GROUP:
250-
seq_printf(s, "group ");
250+
seq_puts(s, "group ");
251251
break;
252252
default:
253253
break;

0 commit comments

Comments
 (0)