kernel-hacking-2024-linux-s.../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
asus_oled
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
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
et131x Staging: et131x_kill MAC_STAT_t 2010-03-03 16:42:52 -08:00
frontier
go7007
hv
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
octeon
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
poch
pohmelfs Staging/pohmelfs: fix write_inode parameter warning 2010-03-03 16:43:04 -08:00
quatech_usb2
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
rt3070
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
slicoss Staging: Fix continuation line formats 2010-03-03 16:42:55 -08:00
sm7xx
strip
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
wavelan
winbond
wlags49_h2
wlags49_h25
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