* [PATCH 1/3] Staging: comedi: fix warning issue in daqboard2000.c
[not found] <[PATCH 1/3]Staging : comedi: fix indentation warning issue in daqboard2000.c>
@ 2011-07-14 6:02 ` Ravishankar
2011-07-14 7:59 ` Dan Carpenter
0 siblings, 1 reply; 2+ messages in thread
From: Ravishankar @ 2011-07-14 6:02 UTC (permalink / raw)
To: gregkh, wfp5p; +Cc: devel, linux-kernel, Ravishankar, Ravishankar
From: Ravishankar <ravi.shankar@greenturtles.in>
This is a patch to the daqboard2000.c file that fixes up a indentation warning found by the checkpatch.pl tool
Signed-off-by: Ravishankar <ravishankarkm32@gmail.com>
---
drivers/staging/comedi/drivers/daqboard2000.c | 58 ++++++++++++------------
1 files changed, 29 insertions(+), 29 deletions(-)
diff --git a/drivers/staging/comedi/drivers/daqboard2000.c b/drivers/staging/comedi/drivers/daqboard2000.c
index 82be77d..6441771 100644
--- a/drivers/staging/comedi/drivers/daqboard2000.c
+++ b/drivers/staging/comedi/drivers/daqboard2000.c
@@ -54,7 +54,7 @@ Configuration options:
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)
+ a.program the FPGA(windows code sans a lot of error messages)
b.
3. Analog out seems to work OK with DAC's disabled, if DAC's are enabled,
@@ -63,52 +63,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
+ 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.
*/
@@ -722,7 +722,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;
}
--
1.6.5.2
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH 1/3] Staging: comedi: fix warning issue in daqboard2000.c
2011-07-14 6:02 ` [PATCH 1/3] Staging: comedi: fix warning issue in daqboard2000.c Ravishankar
@ 2011-07-14 7:59 ` Dan Carpenter
0 siblings, 0 replies; 2+ messages in thread
From: Dan Carpenter @ 2011-07-14 7:59 UTC (permalink / raw)
To: Ravishankar; +Cc: gregkh, wfp5p, devel, linux-kernel, Ravishankar
On Thu, Jul 14, 2011 at 11:32:13AM +0530, Ravishankar wrote:
> 2. The initialization done so far is:
> - a. program the FPGA (windows code sans a lot of error messages)
> + a.program the FPGA(windows code sans a lot of error messages)
^
Space needed here.
>
> - Word0:
> - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> - ! | | | ! | | | ! | | | ! | | | !
> - +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> + Word0:
> + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
> + !|||!|||!|||!|||!
> + +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
No. The original comment is a diagram and you have destroyed it
completely.
You are writing all these patches to do the minimum needed to make
check patch happy. Check patch is not a human being. Do not write
code to please check patch, because it feels no sadness or happiness.
You have made yourself into a servant of a shell script. Have some
dignity.
regards,
dan carpenter
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-07-14 8:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <[PATCH 1/3]Staging : comedi: fix indentation warning issue in daqboard2000.c>
2011-07-14 6:02 ` [PATCH 1/3] Staging: comedi: fix warning issue in daqboard2000.c Ravishankar
2011-07-14 7:59 ` 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®