* [PATCH 1/2] Staging: comedi: fix warning issue in cb_pcidda.c [not found] <[PATCH]Staging: comedi:fix line over 80 character issue in cb_pcidda.c> @ 2011-08-16 10:52 ` Ravishankar 2011-08-16 11:11 ` Jesper Juhl 0 siblings, 1 reply; 2+ messages in thread From: Ravishankar @ 2011-08-16 10:52 UTC (permalink / raw) To: gregkh, wfp5p; +Cc: devel, linux-kernel, root, Ravishankar From: root <root@localhost.localdomain> This is a patch to the cb_pcidda.c file that fixes up a line over 80 charcter warning found by the checkpatch.pl tool Signed-off-by: Ravishankar <ravishankarkm32@gmail.com> --- drivers/staging/comedi/drivers/cb_pcidda.c | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/drivers/staging/comedi/drivers/cb_pcidda.c b/drivers/staging/comedi/drivers/cb_pcidda.c index 9716f19..4882005 100644 --- a/drivers/staging/comedi/drivers/cb_pcidda.c +++ b/drivers/staging/comedi/drivers/cb_pcidda.c @@ -51,9 +51,11 @@ Please report success/failure with other different cards to #include "comedi_pci.h" #include "8255.h" -#define PCI_VENDOR_ID_CB 0x1307 /* PCI vendor number of ComputerBoards */ +/* PCI vendor number of ComputerBoards */ +#define PCI_VENDOR_ID_CB 0x1307 #define EEPROM_SIZE 128 /* number of entries in eeprom */ -#define MAX_AO_CHANNELS 8 /* maximum number of ao channels for supported boards */ +/* maximum number of ao channels for supported boards */ +#define MAX_AO_CHANNELS 8 /* PCI-DDA base addresses */ #define DIGITALIO_BADRINDEX 2 @@ -227,8 +229,10 @@ struct cb_pcidda_private { /* unsigned long control_status; */ /* unsigned long adc_fifo; */ - unsigned int dac_cal1_bits; /* bits last written to da calibration register 1 */ - unsigned int ao_range[MAX_AO_CHANNELS]; /* current range settings for output channels */ + /* bits last written to da calibration register 1 */ + unsigned int dac_cal1_bits; + /* current range settings for output channels */ + unsigned int ao_range[MAX_AO_CHANNELS]; u16 eeprom_data[EEPROM_SIZE]; /* software copy of board's eeprom */ }; @@ -378,7 +382,8 @@ found: printk(KERN_CONT " eeprom:"); for (index = 0; index < EEPROM_SIZE; index++) { devpriv->eeprom_data[index] = cb_pcidda_read_eeprom(dev, index); - printk(KERN_CONT " %i:0x%x ", index, devpriv->eeprom_data[index]); + printk(KERN_CONT " %i:0x%x ", index, + devpriv->eeprom_data[index]); } printk(KERN_CONT "\n"); -- 1.7.6 ^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/2] Staging: comedi: fix warning issue in cb_pcidda.c 2011-08-16 10:52 ` [PATCH 1/2] Staging: comedi: fix warning issue in cb_pcidda.c Ravishankar @ 2011-08-16 11:11 ` Jesper Juhl 0 siblings, 0 replies; 2+ messages in thread From: Jesper Juhl @ 2011-08-16 11:11 UTC (permalink / raw) To: Ravishankar; +Cc: gregkh, wfp5p, devel, linux-kernel, root On Tue, 16 Aug 2011, Ravishankar wrote: > From: root <root@localhost.localdomain> > >From should be a real person. > This is a patch to the cb_pcidda.c file that fixes up a line over 80 charcter warning found by the checkpatch.pl tool > > Signed-off-by: Ravishankar <ravishankarkm32@gmail.com> > --- > drivers/staging/comedi/drivers/cb_pcidda.c | 15 ++++++++++----- > 1 files changed, 10 insertions(+), 5 deletions(-) > > diff --git a/drivers/staging/comedi/drivers/cb_pcidda.c b/drivers/staging/comedi/drivers/cb_pcidda.c > index 9716f19..4882005 100644 > --- a/drivers/staging/comedi/drivers/cb_pcidda.c > +++ b/drivers/staging/comedi/drivers/cb_pcidda.c > @@ -51,9 +51,11 @@ Please report success/failure with other different cards to > #include "comedi_pci.h" > #include "8255.h" > > -#define PCI_VENDOR_ID_CB 0x1307 /* PCI vendor number of ComputerBoards */ > +/* PCI vendor number of ComputerBoards */ > +#define PCI_VENDOR_ID_CB 0x1307 > #define EEPROM_SIZE 128 /* number of entries in eeprom */ > -#define MAX_AO_CHANNELS 8 /* maximum number of ao channels for supported boards */ > +/* maximum number of ao channels for supported boards */ > +#define MAX_AO_CHANNELS 8 > IMHO these comments are better placed where they were originally. > /* PCI-DDA base addresses */ > #define DIGITALIO_BADRINDEX 2 > @@ -227,8 +229,10 @@ struct cb_pcidda_private { > /* unsigned long control_status; */ > /* unsigned long adc_fifo; */ > > - unsigned int dac_cal1_bits; /* bits last written to da calibration register 1 */ > - unsigned int ao_range[MAX_AO_CHANNELS]; /* current range settings for output channels */ > + /* bits last written to da calibration register 1 */ > + unsigned int dac_cal1_bits; > + /* current range settings for output channels */ > + unsigned int ao_range[MAX_AO_CHANNELS]; > u16 eeprom_data[EEPROM_SIZE]; /* software copy of board's eeprom */ > }; > > @@ -378,7 +382,8 @@ found: > printk(KERN_CONT " eeprom:"); > for (index = 0; index < EEPROM_SIZE; index++) { > devpriv->eeprom_data[index] = cb_pcidda_read_eeprom(dev, index); > - printk(KERN_CONT " %i:0x%x ", index, devpriv->eeprom_data[index]); > + printk(KERN_CONT " %i:0x%x ", index, > + devpriv->eeprom_data[index]); > } > printk(KERN_CONT "\n"); > > -- Jesper Juhl <jj@chaosbits.net> http://www.chaosbits.net/ Don't top-post http://www.catb.org/jargon/html/T/top-post.html Plain text mails only, please. ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-08-16 11:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <[PATCH]Staging: comedi:fix line over 80 character issue in cb_pcidda.c>
2011-08-16 10:52 ` [PATCH 1/2] Staging: comedi: fix warning issue in cb_pcidda.c Ravishankar
2011-08-16 11:11 ` Jesper Juhl
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®