Skip to content

Commit

Permalink
AVR32-pio: Replace two seq_printf() calls by seq_puts() in pio_bank_s…
Browse files Browse the repository at this point in the history
…how()

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 <[email protected]>
  • Loading branch information
elfring authored and egtvedt committed Dec 12, 2016
1 parent 78b7c6b commit 79ba181
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/avr32/mach-at32ap/pio.c
Original file line number Diff line number Diff line change
Expand Up @@ -367,9 +367,9 @@ static void pio_bank_show(struct seq_file *s, struct gpio_chip *chip)
(mask & pdsr) ? "hi" : "lo",
(mask & pusr) ? " " : "up");
if (ifsr & mask)
seq_printf(s, " deglitch");
seq_puts(s, " deglitch");
if ((osr & mdsr) & mask)
seq_printf(s, " open-drain");
seq_puts(s, " open-drain");
if (imr & mask)
seq_printf(s, " irq-%d edge-both",
gpio_to_irq(chip->base + i));
Expand Down

0 comments on commit 79ba181

Please sign in to comment.