Staging: BCM: removed whitespaces and Errors.
PATCH 1/2 Staging: BCM: removed whitespaces and Errors.
Quoted 1 line
From
6e70cd8754968f37e82f6a4d8b9dffffa75ff6e0Mon Sep 17 00:00:00 2001
From: Paul McQuade <[email protected]>
Date: Thu, 8 Aug 2013 16:09:46 +0100
Subject: [PATCH 1/2] Staging: BCM: removed whitespaces and Errors.
BCM Driver had a lot of whitespaces and errors. Some of them are removed by this patch.
Signed-off-by Paul McQuade <[email protected]>
--- drivers/staging/bcm/InterfaceDld.c | 2 +- drivers/staging/bcm/InterfaceIdleMode.c | 16 ++--- drivers/staging/bcm/InterfaceIsr.c | 109 ++++++++++++++----------------- drivers/staging/bcm/InterfaceMisc.c | 2 +- drivers/staging/bcm/headers.h | 4 +- 5 files changed, 59 insertions(+), 74 deletions(-)
drivers/staging/bcm/InterfaceDld.c +1 -1
@@ -115,7 +115,7 @@ int InterfaceFileReadbackFromChip(PVOID arg, struct file *flp, unsigned int on_cwhile (len) {if (*(unsigned int *)&buff_readback[len] != *(unsigned int *)&buff[len]) {BCM_DEBUG_PRINT (psIntfAdapter->psAdapter,DBG_TYPE_INITEXIT ,MP_INIT ,DBG_LVL_ALL ,"Firmware Download is not proper %d" , fw_down); -BCM_DEBUG_PRINT (psIntfAdapter->psAdapter,DBG_TYPE_INITEXIT ,MP_INIT ,DBG_LVL_ALL ,"Val from Binary %x, Val From Read Back %x " , *(unsigned int *)&buff[len], *(unsigned int *)&buff_readback[len]); +BCM_DEBUG_PRINT (psIntfAdapter->psAdapter,DBG_TYPE_INITEXIT ,MP_INIT ,DBG_LVL_ALL ,"Val from Binary %x, Val From Read Back %x " , *(unsigned int *)&buff[len], *(unsigned int *)&buff_readback[len]);BCM_DEBUG_PRINT (psIntfAdapter->psAdapter,DBG_TYPE_INITEXIT ,MP_INIT ,DBG_LVL_ALL ,"len =%x!!!" , len); Status = -EIO ; goto exit;
drivers/staging/bcm/InterfaceIdleMode.c +7 -9
@@ -52,7 +52,7 @@ int InterfaceIdleModeRespond(struct bcm_mini_adapter *Adapter, unsigned int *puiif (ntohl (*puiBuffer) ==GO_TO_IDLE_MODE_PAYLOAD ) {BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,IDLE_MODE ,DBG_LVL_ALL ," Got GO_TO_IDLE_MODE_PAYLOAD(210) Msg Subtype" ); -if (ntohl (*(puiBuffer+1 )) ==0 ) { +if (ntohl (*(puiBuffer+1 )) ==0 ) {BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,IDLE_MODE ,DBG_LVL_ALL ,"Got IDLE MODE WAKE UP Response From F/W" ); status =wrmalt (Adapter,SW_ABORT_IDLEMODE_LOC , &uiRegRead,sizeof (uiRegRead));
@@ -95,8 +95,7 @@ int InterfaceIdleModeRespond(struct bcm_mini_adapter *Adapter, unsigned int *puiwake_up (&Adapter->lowpower_mode_wait_queue); }else { -if (TRUE == Adapter->IdleMode) - { +if (TRUE == Adapter->IdleMode) {BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,IDLE_MODE ,DBG_LVL_ALL ,"Device is already in Idle mode...." );return status ; }
@@ -168,8 +167,7 @@ static int InterfaceAbortIdlemode(struct bcm_mini_adapter *Adapter, unsigned intif (Adapter->ulPowerSaveMode ==DEVICE_POWERSAVE_MODE_AS_MANUAL_CLOCK_GATING ) { value =0x80000000 ; status =wrmalt (Adapter,DEBUG_INTERRUPT_GENERATOR_REGISTOR , &value,sizeof (value)); -if (status) - { +if (status) {BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,IDLE_MODE ,DBG_LVL_ALL ,"WRM to DEBUG_INTERRUPT_GENERATOR_REGISTOR Register failed" );return status; }
@@ -196,7 +194,7 @@ static int InterfaceAbortIdlemode(struct bcm_mini_adapter *Adapter, unsigned int/* mdelay(25); */ timeout = jiffies +msecs_to_jiffies (50 ) ; -while ( timeout > jiffies ) { +while (timeout > jiffies) { itr++ ;rdmalt (Adapter,CHIP_ID_REG , &chip_id,sizeof (UINT ));if (0xbece3200 == (chip_id&~(0xF0 )))
@@ -204,7 +202,7 @@ static int InterfaceAbortIdlemode(struct bcm_mini_adapter *Adapter, unsigned intif (chip_id == Adapter->chip_id)break ; } -if (timeout < jiffies ) +if (timeout < jiffies)BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,IDLE_MODE ,DBG_LVL_ALL ,"Not able to read chip-id even after 25 msec" );else BCM_DEBUG_PRINT (Adapter,DBG_TYPE_OTHERS ,IDLE_MODE ,DBG_LVL_ALL ,"Number of completed iteration to read chip-id :%lu" , itr);
@@ -242,14 +240,14 @@ void InterfaceHandleShutdownModeWakeup(struct bcm_mini_adapter *Adapter) uiRegVal =0 ; Status =wrmalt (Adapter,DEBUG_INTERRUPT_GENERATOR_REGISTOR , &uiRegVal,sizeof (uiRegVal));if (Status) { -BCM_DEBUG_PRINT (Adapter,DBG_TYPE_PRINTK ,0 ,0 ,"WRM to DEBUG_INTERRUPT_GENERATOR_REGISTOR Failed with err :%d" , Status); +BCM_DEBUG_PRINT (Adapter,DBG_TYPE_PRINTK ,0 ,0 ,"WRM to DEBUG_INTERRUPT_GENERATOR_REGISTOR Failed with err :%d" , Status);return ; } }else { -/* clear Interrupt EP registers. */ +/* clear Interrupt EP registers. */ bytes =rdmalt (Adapter,DEVICE_INT_OUT_EP_REG0 , &uiRegVal,sizeof (uiRegVal));if (bytes <0 ) { Status = bytes;
drivers/staging/bcm/InterfaceIsr.c +48 -61
183 lines not on this page · raw message
drivers/staging/bcm/InterfaceMisc.c +1 -1
@@ -104,7 +104,7 @@ int BcmRDM(void *arg, void *buff, int len) { -return InterfaceRDM ((struct bcm_interface_adapter *)arg, addr, buff, len); +return InterfaceRDM ((struct bcm_interface_adapter *)arg, addr, buff, len); } int BcmWRM(void *arg,
drivers/staging/bcm/headers.h +2 -2
@@ -1,6 +1,6 @@/******************************************************************* -* Headers.h +* Headers.h *******************************************************************/ #ifndef __HEADERS_H__#define __HEADERS_H__
@@ -34,7 +34,7 @@#include <linux/tcp.h> #include <linux/udp.h> #include <linux/usb.h> -#include <asm/uaccess.h> +#include <linux/uaccess.h> #include <net/ip.h> #include "Typedefs.h"
Signature · 1 line
1.7.10.4
This breaks the compile.
It's doing too many things at once as well. Do one type of white space fix at a time.
regards,
dan carpenter