Skip to contentSkip to conversation

gpio: gpio-dln2: Added a Blank line after declaration

PATCH In review Mohammad Jamal 3 participants 5 messages Jan 13, 2015 – Jan 16, 2015 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 gpio: gpio-dln2: Added a Blank line after declaration

Fix the coding style issue by adding a blank line after declaration

---
 drivers/gpio/gpio-dln2.c |    1 +
 1 file changed, 1 insertion(+)
drivers/gpio/gpio-dln2.c +1 -0
index ce3c155..dbdb4de 100644
@@ -396,6 +396,7 @@ static void dln2_gpio_event(struct platform_device *pdev, u16 echo,
 			    const void *data, int len)
 {
 	int pin, irq;
+
 	const struct {
 		__le16 count;
 		__u8 type;
Signature · 1 line
1.7.9.5
#2 lore raw
Quoted 8 lines · Linus Walleij
Quoted 3 lines · Mohammad Jamal

Fix the coding style issue by adding a blank line after declaration

Patch applied.

This one looks bogus; it's adding a random newline within the declarations not after.

Johan

#3 lore raw

I think you are write ... checkpatch.pl was giving the error at the line so i added a blank line... i will send an updated patch..

Quoted 14 lines · Johan Hovold
Quoted 8 lines · Linus Walleij
Quoted 3 lines · Mohammad Jamal

Fix the coding style issue by adding a blank line after declaration

Patch applied.

This one looks bogus; it's adding a random newline within the declarations not after.

Johan

#4 lore raw

[ Please do not top-post. ]

Quoted 2 lines · Jamal Mohammad

I think you are write ... checkpatch.pl was giving the error at the line so i added a blank line... i will send an updated patch..

You should not trust checkpatch.pl blindly, and not run it on in-kernel files either. Use it on your own patches as a way to find (possible) mistakes before submission.

Johan