From: Markus Elfring Date: Sun, 16 Oct 2016 20:18:31 +0000 (+0200) Subject: AVR32-pio: Replace two seq_printf() calls by seq_puts() in pio_bank_show() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=79ba1814dafc8f23fc518f7fe1ab79055b60803e;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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) (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));