staging: comedi: fixed checkpatch errors and curly brace issues
PATCH 1/1 staging: comedi: fixed checkpatch errors and curly brace issues
daqboard2000.c: fixed checkpatch errors and curly brace issues.
--- drivers/staging/comedi/drivers/daqboard2000.c | 144 +++++++++++++------------ 1 files changed, 74 insertions(+), 70 deletions(-)
drivers/staging/comedi/drivers/daqboard2000.c +74 -70
@@ -51,11 +51,10 @@ Configuration options: for the card, and here are the findings so far. 1. A good document that describes the PCI interface chip is 9080db-106.pdf - available from http://www.plxtech.com/products/io/pci9080 + available from http://www.plxtech.com/products/io/pci9080 2. The initialization done so far is: - a. program the FPGA (windows code sans a lot of error messages) - b. + a. program the FPGA (windows code sans a lot of error messages) 3. Analog out seems to work OK with DAC's disabled, if DAC's are enabled, you have to output values to all enabled DAC's until result appears, I
@@ -63,52 +62,52 @@ Configuration options:gives me no clues. I'll keep it simple so far. 4. Analog in. -Each channel in the scanlist seems to be controlled by four +Each channel in the scanlist seems to be controlled by four control words: -Word0: -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -! | | | ! | | | ! | | | ! | | | ! -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +Word0: ++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +! | | | ! | | | ! | | | ! | | | ! ++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -Word1: -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -! | | | ! | | | ! | | | ! | | | ! -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +Word1: ++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +! | | | ! | | | ! | | | ! | | | ! ++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | | | | | -+------+------+ | | | | +-- Digital input (??) ++------+------+ | | | | +-- Digital input (??) | | | | +---- 10 us settling time | | | +------ Suspend acquisition (last to scan) | | +-------- Simultaneous sample and hold | +---------- Signed data format +------------------------- Correction offset low -Word2: -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -! | | | ! | | | ! | | | ! | | | ! -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -| | | | | | | | | | -+-----+ +--+--+ +++ +++ +--+--+ -| | | | +----- Expansion channel +Word2: ++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +! | | | ! | | | ! | | | ! | | | ! ++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +| | | | | | | | | | ++-----+ +--+--+ +++ +++ +--+--+ +| | | | +----- Expansion channel | | | +----------- Expansion gain -| | +--------------- Channel (low) +| | +--------------- Channel (low) | +--------------------- Correction offset high +----------------------------- Correction gain low -Word3: -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -! | | | ! | | | ! | | | ! | | | ! -+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ -| | | | | | | | | -+------+------+ | | +-+-+ | | +-- Low bank enable -| | | | | +---- High bank enable -| | | | +------ Hi/low select -| | | +---------- Gain (1,?,2,4,8,16,32,64) -| | +-------------- differential/single ended -| +---------------- Unipolar +Word3: ++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +! | | | ! | | | ! | | | ! | | | ! ++-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ +| | | | | | | | | ++------+------+ | | +-+-+ | | +-- Low bank enable +| | | | | +---- High bank enable +| | | | +------ Hi/low select +| | | +---------- Gain (1,?,2,4,8,16,32,64) +| | +-------------- differential/single ended +| +---------------- Unipolar +------------------------- Correction gain high 999. The card seems to have an incredible amount of capabilities, but -trying to reverse engineer them from the Windows source is beyond my +trying to reverse engineer them from the Windows source is beyond my patience. */
@@ -121,11 +120,11 @@ Configuration options:#include "comedi_pci.h" #include "8255.h" -#define DAQBOARD2000_SUBSYSTEM_IDS2 0x00021616/* Daqboard/2000 - 2 Dacs */ -#define DAQBOARD2000_SUBSYSTEM_IDS4 0x00041616/* Daqboard/2000 - 4 Dacs */ +#define DAQBOARD2000_SUBSYSTEM_IDS2 0x00021616/* Daqboard/2000 - 2 Dacs */ +#define DAQBOARD2000_SUBSYSTEM_IDS4 0x00041616/* Daqboard/2000 - 4 Dacs */ -#define DAQBOARD2000_DAQ_SIZE 0x1002 -#define DAQBOARD2000_PLX_SIZE 0x100 +#define DAQBOARD2000_DAQ_SIZE 0x1002 +#define DAQBOARD2000_PLX_SIZE 0x100/* Initialization bits for the Serial EEPROM Control Register */ #define DAQBOARD2000_SECRProgPinHi 0x8001767e
@@ -136,11 +135,11 @@ Configuration options:#define DAQBOARD2000_SECRReloadLo 0x8000767e/* SECR status bits */ -#define DAQBOARD2000_EEPROM_PRESENT 0x10000000 +#define DAQBOARD2000_EEPROM_PRESENT 0x10000000/* CPLD status bits */ -#define DAQBOARD2000_CPLD_INIT 0x0002 -#define DAQBOARD2000_CPLD_DONE 0x0004 +#define DAQBOARD2000_CPLD_INIT 0x0002 +#define DAQBOARD2000_CPLD_DONE 0x0004/* Available ranges */ static const struct comedi_lrange range_daqboard2000_ai = {13 , {
@@ -415,7 +414,7 @@ static int daqboard2000_ai_insn_read(struct comedi_device *dev,/* If pacer clock is not set to some high value (> 10 us), we risk multiple samples to be put into the result FIFO. */ - fpga->acqPacerClockDivLow =1000000 ;/* 1 second, should be long enough */ + fpga->acqPacerClockDivLow =1000000 ;/* 1 second, should be long enough*/ fpga->acqPacerClockDivHigh =0 ; gain =CR_RANGE (insn->chanspec);
@@ -430,16 +429,16 @@ static int daqboard2000_ai_insn_read(struct comedi_device *dev,/* Enable reading from the scanlist FIFO */ fpga->acqControl = DAQBOARD2000_SeqStartScanList;for (timeout =0 ; timeout <20 ; timeout++) { -if (fpga->acqControl & DAQBOARD2000_AcqConfigPipeFull) { +if (fpga->acqControl & DAQBOARD2000_AcqConfigPipeFull)break ; - } +/* udelay(2); */ } fpga->acqControl = DAQBOARD2000_AdcPacerEnable;for (timeout =0 ; timeout <20 ; timeout++) { -if (fpga->acqControl & DAQBOARD2000_AcqLogicScanning) { +if (fpga->acqControl & DAQBOARD2000_AcqLogicScanning)break ; - } +/* udelay(2); */ }for (timeout =0 ; timeout <20 ; timeout++) {
@@ -465,9 +464,8 @@ static int daqboard2000_ao_insn_read(struct comedi_device *dev,int i;int chan =CR_CHAN (insn->chanspec); -for (i =0 ; i < insn->n; i++) { +for (i =0 ; i < insn->n; i++) data[i] = devpriv->ao_readback[chan]; - }return i; }
@@ -487,18 +485,22 @@ static int daqboard2000_ao_insn_write(struct comedi_device *dev,* OK, since it works OK without enabling the DAC's, let's keep * it as simple as possible... */ -/* fpga->dacControl = (chan + 2) * 0x0010 | 0x0001; udelay(1000); */ + +/* fpga->dacControl = (chan + 2) * 0x0010 | 0x0001; +* udelay(1000); +*/ fpga->dacSetting[chan] = data[i];for (timeout =0 ; timeout <20 ; timeout++) { -if ((fpga->dacControl & ((chan +1 ) *0x0010 )) ==0 ) { +if ((fpga->dacControl & ((chan +1 ) *0x0010 )) ==0 )break ; - } +/* udelay(2); */ } devpriv->ao_readback[chan] = data[i];/* -* Since we never enabled the DAC's, we don't need to disable it... -* fpga->dacControl = (chan + 2) * 0x0010 | 0x0000; udelay(1000); +* Since we never enabled the DAC's, we don't need to disable it +* fpga->dacControl = (chan + 2) * 0x0010 | 0x0000; +* udelay(1000); */ }
@@ -531,7 +533,7 @@ static void daqboard2000_pulseProgPin(struct comedi_device *dev)writel (DAQBOARD2000_SECRProgPinHi, devpriv->plx +0x6c );udelay (10000 );writel (DAQBOARD2000_SECRProgPinLo, devpriv->plx +0x6c ); -udelay (10000 );/* Not in the original code, but I like symmetry... */ +udelay (10000 );/* Not in the original code, but I like symmetry... */ }static int daqboard2000_pollCPLD (struct comedi_device *dev,int mask)
@@ -605,9 +607,8 @@ static int initialize_daqboard2000(struct comedi_device *dev,for (; i < len; i +=2 ) {int data = (cpld_array[i] <<8 ) + cpld_array[i +1 ]; -if (!daqboard2000_writeCPLD (dev, data)) { +if (!daqboard2000_writeCPLD (dev, data))break ; - } }if (i >= len) {#ifdef DEBUG_EEPROM
@@ -658,9 +659,9 @@ static void daqboard2000_activateReferenceDacs(struct comedi_device *dev)/* Set the + reference dac value in the FPGA */ fpga->refDacs =0x80 | DAQBOARD2000_PosRefDacSelect;for (timeout =0 ; timeout <20 ; timeout++) { -if ((fpga->dacControl & DAQBOARD2000_RefBusy) ==0 ) { +if ((fpga->dacControl & DAQBOARD2000_RefBusy) ==0 )break ; - } +udelay (2 ); }/* printk("DAQBOARD2000_PosRefDacSelect %d\n", timeout);*/
@@ -668,9 +669,9 @@ static void daqboard2000_activateReferenceDacs(struct comedi_device *dev)/* Set the - reference dac value in the FPGA */ fpga->refDacs =0x80 | DAQBOARD2000_NegRefDacSelect;for (timeout =0 ; timeout <20 ; timeout++) { -if ((fpga->dacControl & DAQBOARD2000_RefBusy) ==0 ) { +if ((fpga->dacControl & DAQBOARD2000_RefBusy) ==0 )break ; - } +udelay (2 ); }/* printk("DAQBOARD2000_NegRefDacSelect %d\n", timeout);*/
@@ -707,7 +708,11 @@ static void daqboard2000_initializeDac(struct comedi_device *dev)/* The test command, REMOVE!!: -rmmod daqboard2000 ; rmmod comedi; make install ; modprobe daqboard2000; /usr/sbin/comedi_config /dev/comedi0 daqboard/2000 ; tail -40 /var/log/messages +rmmod daqboard2000; +* rmmod comedi; make install ; +* modprobe daqboard2000; +* /usr/sbin/comedi_config /dev/comedi0 daqboard/2000 ; +* tail -40 /var/log/messages */ static int daqboard2000_8255_cb(int dir, int port, int data,
@@ -722,7 +727,7 @@ static int daqboard2000_8255_cb(int dir, int port, int data, }/* printk("daqboard2000_8255_cb %x %d %d %2.2x -> %2.2x\n", -arg, dir, port, data, result); +arg, dir, port, data, result); */ return result; }
@@ -743,9 +748,9 @@ static int daqboard2000_attach(struct comedi_device *dev, slot = it->options[1 ]; result =alloc_private (dev,sizeof (struct daqboard2000_private )); -if (result <0 ) { +if (result <0 )return -ENOMEM ; - } +for (card =pci_get_device (0x1616 ,0x0409 ,NULL ); card !=NULL ; card =pci_get_device (0x1616 ,0x0409 , card)) {if (bus || slot) {
@@ -778,7 +783,7 @@ static int daqboard2000_attach(struct comedi_device *dev, }if (!dev->board_ptr) {printk - (" unknown subsystem id %08x (pretend it is an ids2)" , + ("unknown subsystem id %08x (pretend it is an ids2)" , id); dev->board_ptr = boardtypes; }
@@ -794,9 +799,8 @@ static int daqboard2000_attach(struct comedi_device *dev,ioremap (pci_resource_start (card,0 ),DAQBOARD2000_PLX_SIZE ); devpriv->daq =ioremap (pci_resource_start (card,2 ),DAQBOARD2000_DAQ_SIZE ); -if (!devpriv->plx || !devpriv->daq) { +if (!devpriv->plx || !devpriv->daq)return -ENOMEM ; - } result =alloc_subdevices (dev,3 );if (result <0 )
@@ -869,18 +873,18 @@ static int daqboard2000_detach(struct comedi_device *dev)if (dev->subdevices)subdev_8255_cleanup (dev, dev->subdevices +2 ); -if (dev->irq) { +if (dev->irq)free_irq (dev->irq, dev); - } +if (devpriv) {if (devpriv->daq)iounmap (devpriv->daq);if (devpriv->plx)iounmap (devpriv->plx);if (devpriv->pci_dev) { -if (devpriv->got_regions) { +if (devpriv->got_regions)comedi_pci_disable (devpriv->pci_dev); - } +pci_dev_put (devpriv->pci_dev); } }
Signature · 1 line
1.7.6.1
I don't know why you CC'd this to me, I've nothing to do with this driver.
But I'll review the patch anyway.
Quoted 1 line · Ramesh Raj
daqboard2000.c: fixed checkpatch errors and curly brace issues.
Your commit log entry repeats the subject and adds a filename? You're kidding?
checkpatch "errors" are suggestions (at best).
drivers/staging/comedi/drivers/daqboard2000.c Configuration options: · line 71
Quoted 8 lines
drivers/staging/comedi/drivers/daqboard2000.c +4
-4- Word0: - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ - ! | | | ! | | | ! | | | ! | | | ! - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + Word0: + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ + ! | | | ! | | | ! | | | ! | | | ! + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
Converting spaces to tabs in ASCII art documentation is daft.
drivers/staging/comedi/drivers/daqboard2000.c static int daqboard2000_ai_insn_read(struct comedi_device *dev, · line 417
Quoted 5 lines
drivers/staging/comedi/drivers/daqboard2000.c +1
-1/* If pacer clock is not set to some high value (> 10 us), we risk multiple samples to be put into the result FIFO. */ - fpga->acqPacerClockDivLow =1000000 ;/* 1 second, should be long enough */ + fpga->acqPacerClockDivLow =1000000 ;/* 1 second, should be long enough*/
Is this supposed to be an improvement?
drivers/staging/comedi/drivers/daqboard2000.c static int daqboard2000_ai_insn_read(struct comedi_device *dev, · line 434
Quoted 12 lines
drivers/staging/comedi/drivers/daqboard2000.c +2
-2fpga->acqPacerClockDivHigh =0 ; gain =CR_RANGE (insn->chanspec);@@ -430,16 +429,16 @@ static int daqboard2000_ai_insn_read(struct comedi_device *dev,/* Enable reading from the scanlist FIFO */ fpga->acqControl = DAQBOARD2000_SeqStartScanList;for (timeout =0 ; timeout <20 ; timeout++) { -if (fpga->acqControl & DAQBOARD2000_AcqConfigPipeFull) { +if (fpga->acqControl & DAQBOARD2000_AcqConfigPipeFull)break ; - } +
Pointless churn, IMHO.
drivers/staging/comedi/drivers/daqboard2000.c static int daqboard2000_ai_insn_read(struct comedi_device *dev, · line 441
Quoted 9 lines
drivers/staging/comedi/drivers/daqboard2000.c +2
-2/* udelay(2); */ } fpga->acqControl = DAQBOARD2000_AdcPacerEnable;for (timeout =0 ; timeout <20 ; timeout++) { -if (fpga->acqControl & DAQBOARD2000_AcqLogicScanning) { +if (fpga->acqControl & DAQBOARD2000_AcqLogicScanning)break ; - } +
Same.
drivers/staging/comedi/drivers/daqboard2000.c static int daqboard2000_ao_insn_read(struct comedi_device *dev, · line 470
Quoted 11 lines
drivers/staging/comedi/drivers/daqboard2000.c +1
-2/* udelay(2); */ }for (timeout =0 ; timeout <20 ; timeout++) {@@ -465,9 +464,8 @@ static int daqboard2000_ao_insn_read(struct comedi_device *dev,int i;int chan =CR_CHAN (insn->chanspec); -for (i =0 ; i < insn->n; i++) { +for (i =0 ; i < insn->n; i++) data[i] = devpriv->ao_readback[chan]; - }
Same.
drivers/staging/comedi/drivers/daqboard2000.c static int daqboard2000_ai_insn_read(struct comedi_device *dev, · line 434
Quoted 8 lines
drivers/staging/comedi/drivers/daqboard2000.c +1
-1return i; } -if ((fpga->dacControl & ((chan +1 ) *0x0010 )) ==0 ) { +if ((fpga->dacControl & ((chan +1 ) *0x0010 )) ==0 )drivers/staging/comedi/drivers/daqboard2000.c +1
-1break ; - } +
Same.
Review
Quoted 12 lines
(quoted diff) +1
-2/* udelay(2); */ } devpriv->ao_readback[chan] = data[i]; /* (cpld_array[i] << 8) + cpld_array[i + 1]; - if (!daqboard2000_writeCPLD(dev, data)) { + if (!daqboard2000_writeCPLD(dev, data)) break; - }
Same.
drivers/staging/comedi/drivers/daqboard2000.c static void daqboard2000_activateReferenceDacs(struct comedi_device *dev) · line 664
Quoted 12 lines
drivers/staging/comedi/drivers/daqboard2000.c +2
-2}if (i >= len) {#ifdef DEBUG_EEPROM @@ -658,9 +659,9 @@ static void daqboard2000_activateReferenceDacs(struct comedi_device *dev)/* Set the + reference dac value in the FPGA */ fpga->refDacs =0x80 | DAQBOARD2000_PosRefDacSelect;for (timeout =0 ; timeout <20 ; timeout++) { -if ((fpga->dacControl & DAQBOARD2000_RefBusy) ==0 ) { +if ((fpga->dacControl & DAQBOARD2000_RefBusy) ==0 )break ; - } +
Same.
drivers/staging/comedi/drivers/daqboard2000.c static void daqboard2000_activateReferenceDacs(struct comedi_device *dev) · line 674
Quoted 12 lines
drivers/staging/comedi/drivers/daqboard2000.c +2
-2udelay (2 ); }/* printk("DAQBOARD2000_PosRefDacSelect %d\n", timeout);*/ @@ -668,9 +669,9 @@ static void daqboard2000_activateReferenceDacs(struct comedi_device *dev)/* Set the - reference dac value in the FPGA */ fpga->refDacs =0x80 | DAQBOARD2000_NegRefDacSelect;for (timeout =0 ; timeout <20 ; timeout++) { -if ((fpga->dacControl & DAQBOARD2000_RefBusy) ==0 ) { +if ((fpga->dacControl & DAQBOARD2000_RefBusy) ==0 )break ; - } +
Same.
Quoted 4 lines
drivers/staging/comedi/drivers/daqboard2000.c +0
-0udelay (2 ); }/* printk("DAQBOARD2000_NegRefDacSelect %d\n", timeout);*/
drivers/staging/comedi/drivers/daqboard2000.c static void daqboard2000_initializeDac(struct comedi_device *dev) · line 716
Quoted 10 lines
drivers/staging/comedi/drivers/daqboard2000.c +5
-1@@ -707,7 +708,11 @@ static void daqboard2000_initializeDac(struct comedi_device *dev)/* The test command, REMOVE!!: -rmmod daqboard2000 ; rmmod comedi; make install ; modprobe daqboard2000; /usr/sbin/comedi_config /dev/comedi0 daqboard/2000 ; tail -40 /var/log/messages +rmmod daqboard2000; +* rmmod comedi; make install ; +* modprobe daqboard2000; +* /usr/sbin/comedi_config /dev/comedi0 daqboard/2000 ; +* tail -40 /var/log/messages */
I'm sorry. How is this an improvement? Your version of this shell script has worse style than the original, and can't be cut and pasted.
drivers/staging/comedi/drivers/daqboard2000.c static int daqboard2000_8255_cb(int dir, int port, int data, · line 730
Quoted 8 lines
drivers/staging/comedi/drivers/daqboard2000.c +1
-1static int daqboard2000_8255_cb(int dir, int port, int data,@@ -722,7 +727,7 @@ static int daqboard2000_8255_cb(int dir, int port, int data, }/* printk("daqboard2000_8255_cb %x %d %d %2.2x -> %2.2x\n", -arg, dir, port, data, result); +arg, dir, port, data, result);
Wrong. The level of indentation here is not a tab. Also, there are coding style rules for comments.
drivers/staging/comedi/drivers/daqboard2000.c static int daqboard2000_attach(struct comedi_device *dev, · line 753
Quoted 12 lines
drivers/staging/comedi/drivers/daqboard2000.c +2
-2*/ return result; }@@ -743,9 +748,9 @@ static int daqboard2000_attach(struct comedi_device *dev, slot = it->options[1 ]; result =alloc_private (dev,sizeof (struct daqboard2000_private )); -if (result <0 ) { +if (result <0 )return -ENOMEM ; - } +
Churn.
drivers/staging/comedi/drivers/daqboard2000.c static int daqboard2000_attach(struct comedi_device *dev, · line 786
Quoted 9 lines
drivers/staging/comedi/drivers/daqboard2000.c +1
-1for (card =pci_get_device (0x1616 ,0x0409 ,NULL ); card !=NULL ; card =pci_get_device (0x1616 ,0x0409 , card)) {if (bus || slot) {@@ -778,7 +783,7 @@ static int daqboard2000_attach(struct comedi_device *dev, }if (!dev->board_ptr) { printk - (" unknown subsystem id %08x (pretend it is an ids2)", + ("unknown subsystem id %08x (pretend it is an ids2)",
Wrong in various ways. If checkpatch didn't point out the whitespace issues in your code then read the style guides. You should split the string constant, keep the parens on the line with the function invocation, indent to the correct level. I'm not going to comment on the missing log level tag.
drivers/staging/comedi/drivers/daqboard2000.c static int daqboard2000_attach(struct comedi_device *dev, · line 799
Quoted 11 lines
drivers/staging/comedi/drivers/daqboard2000.c +1
-2id); dev->board_ptr = boardtypes; }@@ -794,9 +799,8 @@ static int daqboard2000_attach(struct comedi_device *dev,ioremap (pci_resource_start (card,0 ),DAQBOARD2000_PLX_SIZE ); devpriv->daq =ioremap (pci_resource_start (card,2 ),DAQBOARD2000_DAQ_SIZE ); -if (!devpriv->plx || !devpriv->daq) { +if (!devpriv->plx || !devpriv->daq)return -ENOMEM ; - }
Churn.
drivers/staging/comedi/drivers/daqboard2000.c static int daqboard2000_detach(struct comedi_device *dev) · line 878
Quoted 12 lines
drivers/staging/comedi/drivers/daqboard2000.c +2
-2result =alloc_subdevices (dev,3 );if (result <0 )@@ -869,18 +873,18 @@ static int daqboard2000_detach(struct comedi_device *dev)if (dev->subdevices)subdev_8255_cleanup (dev, dev->subdevices +2 ); -if (dev->irq) { +if (dev->irq)free_irq (dev->irq, dev); - } +
Same.
drivers/staging/comedi/drivers/daqboard2000.c static int daqboard2000_detach(struct comedi_device *dev) · line 887
Quoted 11 lines
drivers/staging/comedi/drivers/daqboard2000.c +2
-2if (devpriv) {if (devpriv->daq)iounmap (devpriv->daq);if (devpriv->plx)iounmap (devpriv->plx);if (devpriv->pci_dev) { -if (devpriv->got_regions) { +if (devpriv->got_regions)comedi_pci_disable (devpriv->pci_dev); - } +
Same.
drivers/staging/comedi/drivers/daqboard2000.c static int daqboard2000_detach(struct comedi_device *dev) · line 890
Quoted 4 lines
drivers/staging/comedi/drivers/daqboard2000.c +0
-0pci_dev_put (devpriv->pci_dev); } }
Ramesh, please don't spam my inbox with this. I have nothing to do with this driver, and I don't like reviewing crap like this.
As for Greg Kroah-Hartman's inbox, you need to read this:
http://www.kroah.com/log/linux/maintainer-06.html
If you are going to submit patches relating to coding style, start by reading the kernel code style guide (and the other links in part 1 of that series of posts).
As for running check patch on existing code, please consider Al Viro's advice:
https://lkml.org/lkml/2010/3/8/282
Finn
Churn is actually OK for staging drivers. It's sort of the point of staging in fact.
Sorry you were included on the CC list improperly. get_maintainers.pl got confused from a trivial patch across multiple subsystems.
Ramesh, ignore the comments that say "Churn" and fix the rest and resend. Don't CC Finn Thain. Also while you're at it, don't CC linux-kernel (they don't care about white space fixes).
regards,
dan carpenter
Quoted 2 lines · Dan Carpenter
Churn is actually OK for staging drivers. It's sort of the point of staging in fact.
I should have noticed that. Sorry, Ramesh, I was too harsh.
Finn