mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Re: [PATCH 4/4] Staging: comedi: fix warning: line over 80 character issue in rtd520.c
  2011-07-08 12:22 ` [PATCH 4/4] Staging: comedi: fix warning: line over 80 character issue in rtd520.c Ravishankar
@ 2011-07-08 12:18   ` Dan Carpenter
  0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2011-07-08 12:18 UTC (permalink / raw)
  To: Ravishankar; +Cc: gregkh, wfp5p, devel, linux-kernel, Ravishankar

On Fri, Jul 08, 2011 at 05:52:46PM +0530, Ravishankar wrote:
> @@ -1701,7 +1703,8 @@ transferDone:
>  
>  	fifoStatus = RtdFifoStatus(dev);	/* DEBUG */
>  	DPRINTK
> -	    ("rtd520: Acquisition complete. %ld ints, intStat=%x, overStat=%x\n",
> +	    ("rtd520: Acquisition complete. %ld ints, intStat=%x, overStat=%x\n"
> +,
>  	     devpriv->intCount, status,
>  	     0xffff & RtdInterruptOverrunStatus(dev));

Nah.  Don't do that.

regards,
dan carpenter

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH 4/4] Staging: comedi: fix warning: line over 80 character issue in rtd520.c
       [not found] <[PATCH]Staging: comedi: fix line over 80 character warning issue in rtd520.c>
@ 2011-07-08 12:22 ` Ravishankar
  2011-07-08 12:18   ` Dan Carpenter
  0 siblings, 1 reply; 2+ messages in thread
From: Ravishankar @ 2011-07-08 12:22 UTC (permalink / raw)
  To: gregkh, wfp5p; +Cc: devel, linux-kernel, Ravishankar, Ravishankar

From: Ravishankar <ravi.shankar@greenturtles.in>

This is a patch to the rtd520.c file that fixes up a  warning: line over 80 character found by the checkpatch.pl tool

Signed-off-by: Ravishankar <ravishankarkm32@gmail.com>
---
 drivers/staging/comedi/drivers/rtd520.c |   18 +++++++++++-------
 1 files changed, 11 insertions(+), 7 deletions(-)

diff --git a/drivers/staging/comedi/drivers/rtd520.c b/drivers/staging/comedi/drivers/rtd520.c
index dd00b4a..d31abfb 100644
--- a/drivers/staging/comedi/drivers/rtd520.c
+++ b/drivers/staging/comedi/drivers/rtd520.c
@@ -1581,7 +1581,7 @@ static irqreturn_t rtd_interrupt(int irq,	/* interrupt number (ignored) */
 			}
 
 			/*DPRINTK ("rtd520: DMA transfer: %ld to go, istatus %x\n",
-			   devpriv->aiCount, istatus); */
+			  devpriv->aiCount, istatus); */
 			RtdDma0Control(dev,
 				       (devpriv->
 					dma0Control & ~PLX_DMA_START_BIT)
@@ -1592,7 +1592,8 @@ static irqreturn_t rtd_interrupt(int irq,	/* interrupt number (ignored) */
 			}
 			comedi_event(dev, s);
 		} else {
-			/*DPRINTK ("rtd520: No DMA ready: istatus %x\n", istatus); */
+			/*DPRINTK ("rtd520: No DMA ready: istatus %x\n",
+			  istatus); */
 		}
 	}
 	/* Fall through and check for other interrupt sources */
@@ -1604,9 +1605,10 @@ static irqreturn_t rtd_interrupt(int irq,	/* interrupt number (ignored) */
 		return IRQ_HANDLED;
 
 	if (status & IRQM_ADC_ABOUT_CNT) {	/* sample count -> read FIFO */
-		/* since the priority interrupt controller may have queued a sample
-		   counter interrupt, even though we have already finished,
-		   we must handle the possibility that there is no data here */
+		/* since the priority interrupt controller may have queued a
+		   sample counter interrupt, even though we have already
+		   finished, we must handle the possibility that there is no
+		   data here */
 		if (!(fifoStatus & FS_ADC_HEMPTY)) {	/* 0 -> 1/2 full */
 			/*DPRINTK("rtd520: Sample int, reading 1/2FIFO.  fifo_status 0x%x\n",
 			   (fifoStatus ^ 0x6666) & 0x7777); */
@@ -1701,7 +1703,8 @@ transferDone:
 
 	fifoStatus = RtdFifoStatus(dev);	/* DEBUG */
 	DPRINTK
-	    ("rtd520: Acquisition complete. %ld ints, intStat=%x, overStat=%x\n",
+	    ("rtd520: Acquisition complete. %ld ints, intStat=%x, overStat=%x\n"
+,
 	     devpriv->intCount, status,
 	     0xffff & RtdInterruptOverrunStatus(dev));
 
@@ -1714,7 +1717,8 @@ transferDone:
 */
 static int rtd_ai_poll(struct comedi_device *dev, struct comedi_subdevice *s)
 {
-	/* TODO: This needs to mask interrupts, read_dregs, and then re-enable */
+	/* TODO: This needs to mask interrupts, read_dregs, and
+	 * then re - enable */
 	/* Not sure what to do if DMA is active */
 	return s->async->buf_write_count - s->async->buf_read_count;
 }
-- 
1.6.5.2


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-07-08 12:19 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 warning issue in rtd520.c>
2011-07-08 12:22 ` [PATCH 4/4] Staging: comedi: fix warning: line over 80 character issue in rtd520.c Ravishankar
2011-07-08 12:18   ` Dan Carpenter

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®