diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2016-10-16 06:30:48 -0400 |
---|---|---|
committer | Gregory CLEMENT <gregory.clement@free-electrons.com> | 2016-10-17 11:40:24 -0400 |
commit | d6ea689345ecc27b636a8bb62bf07080f21f110c (patch) | |
tree | 451a31878abc134f34d11ce72efd585c2e4742aa | |
parent | 1001354ca34179f3db924eb66672442a173147dc (diff) |
ARM/orion/gpio: Replace three seq_printf() calls by seq_puts() in orion_gpio_dbg_show()
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>
-rw-r--r-- | arch/arm/plat-orion/gpio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/arm/plat-orion/gpio.c b/arch/arm/plat-orion/gpio.c index f74069386c13..26a531ebb6e9 100644 --- a/arch/arm/plat-orion/gpio.c +++ b/arch/arm/plat-orion/gpio.c | |||
@@ -478,13 +478,13 @@ static void orion_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip) | |||
478 | (data_in ^ in_pol) & msk ? "hi" : "lo", | 478 | (data_in ^ in_pol) & msk ? "hi" : "lo", |
479 | in_pol & msk ? "lo" : "hi"); | 479 | in_pol & msk ? "lo" : "hi"); |
480 | if (!((edg_msk | lvl_msk) & msk)) { | 480 | if (!((edg_msk | lvl_msk) & msk)) { |
481 | seq_printf(s, " disabled\n"); | 481 | seq_puts(s, " disabled\n"); |
482 | continue; | 482 | continue; |
483 | } | 483 | } |
484 | if (edg_msk & msk) | 484 | if (edg_msk & msk) |
485 | seq_printf(s, " edge "); | 485 | seq_puts(s, " edge "); |
486 | if (lvl_msk & msk) | 486 | if (lvl_msk & msk) |
487 | seq_printf(s, " level"); | 487 | seq_puts(s, " level"); |
488 | seq_printf(s, " (%s)\n", cause & msk ? "pending" : "clear "); | 488 | seq_printf(s, " (%s)\n", cause & msk ? "pending" : "clear "); |
489 | } | 489 | } |
490 | } | 490 | } |