]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commitdiff
AVR32-pio: Replace two seq_printf() calls by seq_puts() in pio_bank_show()
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 16 Oct 2016 20:18:31 +0000 (22:18 +0200)
committerHans-Christian Noren Egtvedt <egtvedt@samfundet.no>
Mon, 12 Dec 2016 08:05:46 +0000 (09:05 +0100)
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>
arch/avr32/mach-at32ap/pio.c

index abbe1b579495b3d26ed0f669a90e25293878c28a..7fae6ec7e8ecb58b24894a4e6437943bc09b4377 100644 (file)
@@ -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));