linux/drivers/staging
Andrea Gelmini dd105f08c0 Staging: comedi: hwdrv_apci3120.c: Checkpatch cleanup
ERROR: do not initialise statics to 0 or NULL
+static unsigned int ui_Temp = 0;

WARNING: braces {} are not necessary for any arm of this statement
+		if (data[1]) {
[...]
+		} else
[...]

WARNING: braces {} are not necessary for single statement blocks
+		for (i = 0; i < devpriv->ui_AiNbrofChannels; i++) {
+			devpriv->ui_AiChannelList[i] = data[4 + i];
+		}

ERROR: that open brace { should be on the previous line
+	} else			/*  EOC */
+	{

WARNING: braces {} are not necessary for any arm of this statement
+		if (data[1]) {
[...]
+		} else {
[...]

ERROR: that open brace { should be on the previous line
+	if (insn->unused[0] == 222)	/*  second insn read */
+	{

WARNING: braces {} are not necessary for single statement blocks
+		for (i = 0; i < insn->n; i++) {
+			data[i] = devpriv->ui_AiReadData[i];
+		}

WARNING: braces {} are not necessary for single statement blocks
+	if (cmd->start_src != TRIG_NOW && cmd->start_src != TRIG_EXT) {
+		err++;
+	}

ERROR: that open brace { should be on the previous line
+	if (cmd->scan_begin_src == TRIG_TIMER)	/*  Test Delay timing */
+	{

ERROR: that open brace { should be on the previous line
+	if (cmd->convert_src == TRIG_TIMER)	/*  Test Acquisition timing */
+	{

WARNING: braces {} are not necessary for any arm of this statement
+	if (cmd->stop_src == TRIG_COUNT) {
[...]
+	} else {
[...]

WARNING: braces {} are not necessary for single statement blocks
+	if (devpriv->b_ExttrigEnable == APCI3120_ENABLE) {
+		i_APCI3120_ExttrigEnable(dev);	/*  activate EXT trigger */
+	}

WARNING: braces {} are not necessary for single statement blocks
+			if (dmalen0 > (devpriv->ui_AiDataLength)) {
+				dmalen0 = devpriv->ui_AiDataLength;
+			}

WARNING: braces {} are not necessary for single statement blocks
+			if (dmalen1 > (devpriv->ui_AiDataLength)) {
+				dmalen1 = devpriv->ui_AiDataLength;
+			}

WARNING: braces {} are not necessary for any arm of this statement
+		if (CR_RANGE(chanlist[i]) < APCI3120_BIPOLAR_RANGES) {
[...]
+		} else {
[...]

ERROR: that open brace { should be on the previous line
+		if (devpriv->b_EocEosInterrupt == APCI3120_ENABLE)	/*  enable this in without DMA ??? */
+		{

ERROR: that open brace { should be on the previous line
+	if (data[0] == APCI3120_TIMER)	/* initialize timer */
+	{

ERROR: that open brace { should be on the previous line
+	} else			/*  Initialize Watch dog */
+	{

ERROR: that open brace { should be on the previous line
+	if (data[0] == 2)	/*  write new value */
+	{

ERROR: that open brace { should be on the previous line
+		if (devpriv->b_Timer2Mode == APCI3120_TIMER)	/* start timer */
+		{

ERROR: that open brace { should be on the previous line
+		} else		/* start watch dog */
+		{

ERROR: that open brace { should be on the previous line
+		if (devpriv->b_Timer2Mode == APCI3120_TIMER)	/* start timer */
+		{

ERROR: that open brace { should be on the previous line
+	} else			/*  Read watch dog status */
+	{

WARNING: braces {} are not necessary for single statement blocks
+	if (!devpriv->b_OutputMemoryStatus) {
+		ui_Temp = 0;
+
+	}			/* if(!devpriv->b_OutputMemoryStatus ) */

ERROR: code indent should use tabs where possible
+                      data[0]     Value to be written$

ERROR: code indent should use tabs where possible
+                      data[1]    :1 Set digital o/p ON$

ERROR: code indent should use tabs where possible
+                      data[1]     2 Set digital o/p OFF with memory ON$

ERROR: that open brace { should be on the previous line
+	if (ui_Range)		/*  if 1 then unipolar */
+	{

ERROR: that open brace { should be on the previous line
+	} else			/*  if 0 then   bipolar */
+	{

ERROR: that open brace { should be on the previous line
+	do			/* Waiting of DA_READY BIT */
+	{

Signed-off-by: Andrea Gelmini <andrea.gelmini@gelma.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2010-03-03 16:43:06 -08:00
..
arlan Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-next-2.6 2009-12-08 07:55:01 -08:00
asus_oled staging: make USB device id constant 2010-03-03 16:42:42 -08:00
batman-adv Staging: make drivers use spin_lock_init() 2010-03-03 16:43:04 -08:00
comedi Staging: comedi: hwdrv_apci3120.c: Checkpatch cleanup 2010-03-03 16:43:06 -08:00
crystalhd Staging: crystalhd: Misc improvements for crystalhd_lnx.c 2010-03-03 16:43:04 -08:00
cx25821 staging: cx25821: avoid NULL pointer dereference 2010-03-03 16:42:40 -08:00
dream staging: dream: more Code style fixes 2010-03-03 16:42:57 -08:00
dt3155 Staging: dt3155: fix coding style issues in dt3155_io.c 2010-03-03 16:42:56 -08:00
echo Staging: echo: coding style cleanups 2009-09-15 12:02:16 -07:00
et131x Staging: et131x_kill MAC_STAT_t 2010-03-03 16:42:52 -08:00
frontier staging: make USB device id constant 2010-03-03 16:42:42 -08:00
go7007 Staging: go7007: Eliminate useless code 2010-03-03 16:42:45 -08:00
hv Staging: hv: match on DMI values to know if we should run. 2010-03-03 16:42:37 -08:00
iio Staging: make drivers use spin_lock_init() 2010-03-03 16:43:04 -08:00
line6 Staging: line6: variax.c: fixed a space a "x ? a : b" coding style issue 2010-03-03 16:43:04 -08:00
netwave Merge branch 'master' of /home/davem/src/GIT/linux-2.6/ 2009-12-05 15:22:26 -08:00
octeon Staging: octeon-ethernet: Convert to use PHY Abstraction Layer. 2009-12-17 01:57:00 +00:00
otus Staging: otus: fix memory leak 2010-03-03 16:42:53 -08:00
panel Staging: Cleanup useless headers 2010-03-03 16:43:05 -08:00
phison staging: make PCI device id constant 2010-03-03 16:42:42 -08:00
poch Staging: poch: Add sample Rx code 2009-12-11 12:23:09 -08:00
pohmelfs Staging/pohmelfs: fix write_inode parameter warning 2010-03-03 16:43:04 -08:00
quatech_usb2 staging: make USB device id constant 2010-03-03 16:42:42 -08:00
ramzswap Staging: ramzswap: Update copyright notice 2010-03-03 16:42:53 -08:00
rar_register Staging: rar_register: add suspend and resume functions 2010-03-03 16:42:57 -08:00
rt2860 Staging: rt2860: correct onstack wait_queue_head declaration 2010-03-03 16:42:55 -08:00
rt2870 Staging: rt{2860,2870}sta: Use request_firmware() to load firmware 2010-03-03 16:42:48 -08:00
rt3070 Staging: rt{2860,2870}sta: Use request_firmware() to load firmware 2010-03-03 16:42:48 -08:00
rtl8187se Staging: rtl8187se: needs semaphore.h 2010-03-03 16:43:00 -08:00
rtl8192e Staging: rtl8192* needs semaphore.h 2010-03-03 16:43:04 -08:00
rtl8192su Staging: rtl8192su: use list_for_each_safe() in ieee80211_crypto_deinit 2010-03-03 16:43:05 -08:00
rtl8192u Staging: rtl8192* needs semaphore.h 2010-03-03 16:43:04 -08:00
samsung-laptop Staging: samsung-laptop: fix coding style issues 2010-03-03 16:42:55 -08:00
sep Staging: Fix continuation line formats 2010-03-03 16:42:55 -08:00
serqt_usb2 Staging: serqt_usb2: Two branches the same in qt_set_termios() 2010-03-03 16:42:48 -08:00
slicoss Staging: Fix continuation line formats 2010-03-03 16:42:55 -08:00
sm7xx staging: sm7xx: remove the buggy 2D acceleration support 2010-03-03 16:42:44 -08:00
strip Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/linville/wireless-next-2.6 2009-11-09 11:17:24 -08:00
udlfb Staging: udlfb: remove printk and small cleanup 2010-03-03 16:43:00 -08:00
usbip Staging: usbip: Seperate usbip config debug from CONFIG_USB_DEBUG 2010-03-03 16:42:52 -08:00
vme Staging: vme: VMIVME-7805 board support 2010-03-03 16:43:02 -08:00
vt6655 staging: vt6655: add missing curly braces 2010-03-03 16:42:58 -08:00
vt6656 Staging/vt66*: kconfig, depends on WLAN 2009-12-23 11:27:50 -08:00
wavelan Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/jikos/trivial 2009-12-09 19:43:33 -08:00
winbond staging: make USB device id constant 2010-03-03 16:42:42 -08:00
wlags49_h2 staging: wlags49: don't use custom implementation of atoi() 2010-03-03 16:42:44 -08:00
wlags49_h25 Staging: wlags49: fix kconfigs dependancy 2009-12-11 12:23:10 -08:00
wlan-ng Staging: wlan-ng: Fixed line length issues in prism2usb.c 2010-03-03 16:43:04 -08:00
Kconfig Staging: rar_register: renaming directory to rar_register 2010-03-03 16:42:56 -08:00
Makefile Staging: rar_register: renaming directory to rar_register 2010-03-03 16:42:56 -08:00
staging.c