]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ARM/orion/gpio: Replace three seq_printf() calls by seq_puts() in orion_gpio_dbg_show()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 16 Oct 2016 10:30:48 +0000 (12:30 +0200)
committerGregory CLEMENT <gregory.clement@free-electrons.com>
Mon, 17 Oct 2016 15:40:24 +0000 (17:40 +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>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: Gregory CLEMENT <gregory.clement@free-electrons.com>
arch/arm/plat-orion/gpio.c

index f74069386c135d2e4d09b1b5d7aced89406b90fb..26a531ebb6e950373e0ff6a0cd26e866558bc854 100644 (file)
@@ -478,13 +478,13 @@ static void orion_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
                           (data_in ^ in_pol) & msk  ? "hi" : "lo",
                           in_pol & msk ? "lo" : "hi");
                if (!((edg_msk | lvl_msk) & msk)) {
-                       seq_printf(s, " disabled\n");
+                       seq_puts(s, " disabled\n");
                        continue;
                }
                if (edg_msk & msk)
-                       seq_printf(s, " edge ");
+                       seq_puts(s, " edge ");
                if (lvl_msk & msk)
-                       seq_printf(s, " level");
+                       seq_puts(s, " level");
                seq_printf(s, " (%s)\n", cause & msk ? "pending" : "clear  ");
        }
 }