pinctrl/nomadik/abx500: Use seq_putc() in abx500_gpio_dbg_show()
Subsystems (4)
PATCH 1/1 pinctrl/nomadik/abx500: Use seq_putc() in abx500_gpio_dbg_show()
From: Markus Elfring <[email protected]>
Date: Sat, 13 Jan 2018 11:04:29 +0100
A single character (line break) should be put into a sequence. Thus use the corresponding function "seq_putc".
This issue was detected by using the Coccinelle software.
Signed-off-by Markus Elfring <[email protected]>
--- drivers/pinctrl/nomadik/pinctrl-abx500.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/pinctrl/nomadik/pinctrl-abx500.c +1 -1
@@ -633,7 +633,7 @@ static void abx500_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)for (i =0 ; i < chip->ngpio; i++, gpio++) {/* On AB8500, there is no GPIO0, the first is the GPIO 1 */ abx500_gpio_dbg_show_one (s, pctldev, chip, i +1 , gpio); -seq_printf (s,"\n" ); +seq_putc (s,'\n' ); } }
Signature · 1 line
2.15.1
Quoted 9 lines · SF Markus Elfring
From: Markus Elfring <[email protected]>
Date: Sat, 13 Jan 2018 11:04:29 +0100A single character (line break) should be put into a sequence. Thus use the corresponding function "
seq_putc".This issue was detected by using the Coccinelle software.
Signed-off-by Markus Elfring <[email protected]>
Patch applied.
Yours,
Linus Walleij