Explorar o código

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>
Markus Elfring %!s(int64=8) %!d(string=hai) anos
pai
achega
de2eae26de
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      drivers/pinctrl/pinconf.c

+ 2 - 2
drivers/pinctrl/pinconf.c

@@ -244,10 +244,10 @@ void pinconf_show_map(struct seq_file *s, struct pinctrl_map const *map)
 
 	switch (map->type) {
 	case PIN_MAP_TYPE_CONFIGS_PIN:
-		seq_printf(s, "pin ");
+		seq_puts(s, "pin ");
 		break;
 	case PIN_MAP_TYPE_CONFIGS_GROUP:
-		seq_printf(s, "group ");
+		seq_puts(s, "group ");
 		break;
 	default:
 		break;