Skip to contentSkip to conversation

Staging: comedi: dmm32at: Fixed a code indent issue

PATCH Superseded Piotr Kubus 6 participants 10 messages Jan 4, 2015 – Jan 10, 2015 Staging

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: comedi: dmm32at: Fixed a code indent issue

This is a patch to the dmm32at.c file that fixes up a code indent error found by the checkpatch.pl tool.

---
 drivers/staging/comedi/drivers/dmm32at.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/comedi/drivers/dmm32at.c +1 -1
index 6df298a..31919b8 100644
@@ -365,7 +365,7 @@ static void dmm32at_setaitimer(struct comedi_device *dev, unsigned int nansec)
 	/* enable the ai conversion interrupt and the clock to start scans */
 	outb(DMM32AT_INTCLK_ADINT |
 	     DMM32AT_INTCLK_CLKEN | DMM32AT_INTCLK_CLKSEL,
-             dev->iobase + DMM32AT_INTCLK_REG);
+	     dev->iobase + DMM32AT_INTCLK_REG);
 }
 
 static int dmm32at_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
Signature · 1 line
1.9.1
#1 lore raw
Quoted 1 line · Piotr Kubus

This is a patch to the dmm32at.c file that fixes up a code indent error found by the checkpatch.pl tool.

Nice however improve your commit message. The rule is that the lines should wrap at 72nd column except for quoted material such as compiler output, etc...

The 72-character columns are important for allowing quoting and they play nicely with standard indentation from git log.

Thanks,
Konrad

Quoted 25 lines
---
 drivers/staging/comedi/drivers/dmm32at.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/comedi/drivers/dmm32at.c +1 -1
index 6df298a..31919b8 100644
@@ -365,7 +365,7 @@ static void dmm32at_setaitimer(struct comedi_device *dev, unsigned int nansec)
 	/* enable the ai conversion interrupt and the clock to start scans */
 	outb(DMM32AT_INTCLK_ADINT |
 	     DMM32AT_INTCLK_CLKEN | DMM32AT_INTCLK_CLKSEL,
-             dev->iobase + DMM32AT_INTCLK_REG);
+	     dev->iobase + DMM32AT_INTCLK_REG);
 }
 
 static int dmm32at_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
Signature · 6 lines
1.9.1

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
#2 lore raw
Quoted 9 lines · Konrad Zapalowicz
Quoted 1 line · Piotr Kubus

This is a patch to the dmm32at.c file that fixes up a code indent error found by the checkpatch.pl tool.

Nice however improve your commit message. The rule is that the lines should wrap at 72nd column except for quoted material such as compiler output, etc...

The 72-character columns are important for allowing quoting and they play nicely with standard indentation from git log.

Hey,

I couldn't find that rule in Kernel documentation. Besides there were no complaints from checkpatch.pl tool.

Do you mean I should resend it or wait for reply from maintainer first?

Regards,
Piotr

Quoted 29 lines

Thanks,
Konrad

Quoted 25 lines
---
 drivers/staging/comedi/drivers/dmm32at.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/comedi/drivers/dmm32at.c +1 -1
index 6df298a..31919b8 100644
@@ -365,7 +365,7 @@ static void dmm32at_setaitimer(struct comedi_device *dev, unsigned int nansec)
 	/* enable the ai conversion interrupt and the clock to start scans */
 	outb(DMM32AT_INTCLK_ADINT |
 	     DMM32AT_INTCLK_CLKEN | DMM32AT_INTCLK_CLKSEL,
-             dev->iobase + DMM32AT_INTCLK_REG);
+	     dev->iobase + DMM32AT_INTCLK_REG);
 }
 
 static int dmm32at_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
Signature · 6 lines
1.9.1

_______________________________________________
devel mailing list
[email protected]
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
#3 lore raw
Quoted 8 lines · Piotr Kubus
Quoted 7 lines · Konrad Zapalowicz
Quoted 1 line · Piotr Kubus

This is a patch to the dmm32at.c file that fixes up a code indent error found by the checkpatch.pl tool.

Nice however improve your commit message. The rule is that the lines should wrap at 72nd column except for quoted material such as compiler output, etc...

Quoted 7 lines
Quoted 2 lines

The 72-character columns are important for allowing quoting and they play nicely with standard indentation from git log.

Hey,

I couldn't find that rule in Kernel documentation. Besides there were no complaints from checkpatch.pl tool.

Please check SubmittingPatches in Documentation. It says:
'the "summary" must be no more than 70-75 characters'

thanks
sudip

Quoted 6 lines

Piotr

Quoted 4 lines

Thanks,
Konrad

<snip>

Quoted 1 line

Please read the FAQ at http://www.tux.org/lkml/

#4 lore raw
Quoted 12 lines · Sudip Mukherjee
Quoted 11 lines · Piotr Kubus
Quoted 9 lines · Konrad Zapalowicz
Quoted 1 line · Piotr Kubus

This is a patch to the dmm32at.c file that fixes up a code indent error found by the checkpatch.pl tool.

Nice however improve your commit message. The rule is that the lines should wrap at 72nd column except for quoted material such as compiler output, etc...

The 72-character columns are important for allowing quoting and they play nicely with standard indentation from git log.

Quoted 7 lines
Quoted 4 lines

Hey,

I couldn't find that rule in Kernel documentation. Besides there were no complaints from checkpatch.pl tool.

Please check SubmittingPatches in Documentation. It says:
'the "summary" must be no more than 70-75 characters'

In this case, it's not the "summary" that's at issue, it's the body of the commit message, as Konrad mentioned above.

Signature · 2 lines
-=( Ian Abbott @ MEV Ltd.    E-mail: <[email protected]> )=-
-=(                          Web: http://www.mev.co.uk/  )=-
#5 lore raw
Quoted 15 lines · Ian Abbott
Quoted 14 lines · Sudip Mukherjee
Quoted 13 lines · Piotr Kubus
Quoted 9 lines · Konrad Zapalowicz
Quoted 1 line · Piotr Kubus

This is a patch to the dmm32at.c file that fixes up a code indent error found by the checkpatch.pl tool.

Nice however improve your commit message. The rule is that the lines should wrap at 72nd column except for quoted material such as compiler output, etc...

The 72-character columns are important for allowing quoting and they play nicely with standard indentation from git log.

Hey,

Quoted 8 lines
Quoted 5 lines
Quoted 2 lines

I couldn't find that rule in Kernel documentation. Besides there were no complaints from checkpatch.pl tool.

Please check SubmittingPatches in Documentation. It says:
'the "summary" must be no more than 70-75 characters'

In this case, it's not the "summary" that's at issue, it's the body of the commit message, as Konrad mentioned above.

yes, i read the SubmittingPatches again. summary is the subject line. But then as Piotr Kubus has written that he could not find this rule in the documentaion, I also tried to find that in SubmittingPatches file and also in the Posting file of the development-process folder, but could not find it. Is it mentioned in some other file we missed ?

sudip

Quoted 4 lines
Signature · 3 lines
-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <[email protected]> )=-
-=(                          Web: http://www.mev.co.uk/  )=-
#6 lore raw
Quoted 19 lines · Sudip Mukherjee
Quoted 18 lines · Ian Abbott
Quoted 17 lines · Sudip Mukherjee
Quoted 15 lines · Piotr Kubus
Quoted 9 lines · Konrad Zapalowicz
Quoted 1 line · Piotr Kubus

This is a patch to the dmm32at.c file that fixes up a code indent error found by the checkpatch.pl tool.

Nice however improve your commit message. The rule is that the lines should wrap at 72nd column except for quoted material such as compiler output, etc...

The 72-character columns are important for allowing quoting and they play nicely with standard indentation from git log.

Hey,

I couldn't find that rule in Kernel documentation. Besides there were no complaints from checkpatch.pl tool.

Quoted 7 lines
Quoted 5 lines
Quoted 2 lines

Please check SubmittingPatches in Documentation. It says:
'the "summary" must be no more than 70-75 characters'

In this case, it's not the "summary" that's at issue, it's the body of the commit message, as Konrad mentioned above.

yes, i read the SubmittingPatches again. summary is the subject line. But then as Piotr Kubus has written that he could not find this rule in the documentaion, I also tried to find that in SubmittingPatches file and also in the Posting file of the development-process folder, but could not find it. Is it mentioned in some other file we missed ?

Then it is an 'unwritten rule' :) You can observe it just be browsing the git log commit messages - pick a few random and you will see.

Moreover in the http://git-scm.com/book/ch5-2.html the 72-character columns are the example of the good commit message plus Linus says so:

"we use 72-character columns for word-wrapping, except for quoted material that has a specific line format."

in one of his comments
https://github.com/torvalds/linux/pull/17#issuecomment-5661185

cheers,
konrad

Quoted 5 lines

sudip

Quoted 4 lines
Signature · 3 lines
-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <[email protected]> )=-
-=(                          Web: http://www.mev.co.uk/  )=-
#7 lore raw
Quoted 5 lines · Konrad Zapalowicz
Quoted 1 line · Sudip Mukherjee

yes, i read the SubmittingPatches again. summary is the subject line. But then as Piotr Kubus has written that he could not find this rule in the documentaion, I also tried to find that in SubmittingPatches file and also in the Posting file of the development-process folder, but could not find it. Is it mentioned in some other file we missed ?

Then it is an 'unwritten rule' :) You can observe it just be browsing the git log commit messages - pick a few random and you will see.

i don't need to veify it, I don't doubt the rule. if you see all the patches i have sent, i have always maintained a rule of 70. just curious why this 72 ..
this one gives a reason why -

http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html

sudip

Quoted 18 lines

Moreover in the http://git-scm.com/book/ch5-2.html the 72-character columns are the example of the good commit message plus Linus says so:

"we use 72-character columns for word-wrapping, except for quoted material that has a specific line format."

in one of his comments
https://github.com/torvalds/linux/pull/17#issuecomment-5661185

cheers,
konrad

Quoted 5 lines

sudip

Quoted 4 lines
Signature · 3 lines
-- 
-=( Ian Abbott @ MEV Ltd.    E-mail: <[email protected]> )=-
-=(                          Web: http://www.mev.co.uk/  )=-
maintainer
#9 lore raw
In reply to Piotr Kubus
Quoted 22 lines · Piotr Kubus

This is a patch to the dmm32at.c file that fixes up a code indent error found by the checkpatch.pl tool.

---
 drivers/staging/comedi/drivers/dmm32at.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/comedi/drivers/dmm32at.c +1 -1
index 6df298a..31919b8 100644
@@ -365,7 +365,7 @@ static void dmm32at_setaitimer(struct comedi_device *dev, unsigned int nansec)
 	/* enable the ai conversion interrupt and the clock to start scans */
 	outb(DMM32AT_INTCLK_ADINT |
 	     DMM32AT_INTCLK_CLKEN | DMM32AT_INTCLK_CLKSEL,
-             dev->iobase + DMM32AT_INTCLK_REG);
+	     dev->iobase + DMM32AT_INTCLK_REG);
 }
 
 static int dmm32at_ai_cmd(struct comedi_device *dev, struct comedi_subdevice *s)
Signature · 1 line
1.9.1

Someone already submitted this same change before you :(