pinctrl: Replace two seq_printf() calls by seq_puts() in pinconf_show_map()
authorMarkus Elfring <elfring@users.sourceforge.net>
Tue, 2 May 2017 07:52:50 +0000 (09:52 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 22 May 2017 08:39:24 +0000 (10:39 +0200)
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/pinconf.c

index 1a3fbdf81ecbdfd34b5b7265cb20c598f8267e6c..44471f6b98988a64b2293ffe70f8483643b3872a 100644 (file)
@@ -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;