aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Elfring <elfring@users.sourceforge.net>2016-10-16 16:18:31 -0400
committerHans-Christian Noren Egtvedt <egtvedt@samfundet.no>2016-12-12 03:05:46 -0500
commit79ba1814dafc8f23fc518f7fe1ab79055b60803e (patch)
tree83671095db6547c443c2f1887c7dfce02eba54cd
parent78b7c6bff173b35b7a65659564e466149ef6f90b (diff)
AVR32-pio: Replace two seq_printf() calls by seq_puts() in pio_bank_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>
-rw-r--r--arch/avr32/mach-at32ap/pio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/avr32/mach-at32ap/pio.c b/arch/avr32/mach-at32ap/pio.c
index abbe1b579495..7fae6ec7e8ec 100644
--- a/arch/avr32/mach-at32ap/pio.c
+++ b/arch/avr32/mach-at32ap/pio.c
@@ -367,9 +367,9 @@ static void pio_bank_show(struct seq_file *s, struct gpio_chip *chip)
367 (mask & pdsr) ? "hi" : "lo", 367 (mask & pdsr) ? "hi" : "lo",
368 (mask & pusr) ? " " : "up"); 368 (mask & pusr) ? " " : "up");
369 if (ifsr & mask) 369 if (ifsr & mask)
370 seq_printf(s, " deglitch"); 370 seq_puts(s, " deglitch");
371 if ((osr & mdsr) & mask) 371 if ((osr & mdsr) & mask)
372 seq_printf(s, " open-drain"); 372 seq_puts(s, " open-drain");
373 if (imr & mask) 373 if (imr & mask)
374 seq_printf(s, " irq-%d edge-both", 374 seq_printf(s, " irq-%d edge-both",
375 gpio_to_irq(chip->base + i)); 375 gpio_to_irq(chip->base + i));