Skip to contentSkip to conversation

gpio: mcp23s08: Use seq_putc() in mcp23s08_dbg_show()

PATCH In review SF Markus Elfring 2 participants 2 messages May 8, 2017 – May 11, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: mcp23s08: Use seq_putc() in mcp23s08_dbg_show()

From: Markus Elfring <[email protected]>
Date: Mon, 8 May 2017 12:44:36 +0200

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.

---
 drivers/gpio/gpio-mcp23s08.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpio/gpio-mcp23s08.c +1 -1
index 2a57d024481d..51dff7e95a9e 100644
@@ -519,7 +519,7 @@ static void mcp23s08_dbg_show(struct seq_file *s, struct gpio_chip *chip)
 			(mcp->cache[MCP_GPIO] & mask) ? "hi" : "lo",
 			(mcp->cache[MCP_GPPU] & mask) ? "up" : "  ");
 		/* NOTE:  ignoring the irq-related registers */
-		seq_puts(s, "\n");
+		seq_putc(s, '\n');
 	}
 done:
 	mutex_unlock(&mcp->lock);
Signature · 1 line
2.12.2
#1 lore raw
Quoted 9 lines · SF Markus Elfring

From: Markus Elfring <[email protected]>
Date: Mon, 8 May 2017 12:44:36 +0200

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.

I can't change stuff around this driver right now as it is being rewritten.

Yours,
Linus Walleij