Staging: bcm: Fix all white space issues in Debug.h
This patch fixes all white space issues in Debug.h as reported by checkpatch.pl. Signed-off-by: Kevin McKinney <klmckinney1@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
c5485e9ca7
commit
4f2e1477bb
|
@ -9,9 +9,7 @@
|
||||||
#include <linux/string.h>
|
#include <linux/string.h>
|
||||||
#define NONE 0xFFFF
|
#define NONE 0xFFFF
|
||||||
|
|
||||||
|
|
||||||
//--------------------------------------------------------------------------------
|
//--------------------------------------------------------------------------------
|
||||||
|
|
||||||
/* TYPE and SUBTYPE
|
/* TYPE and SUBTYPE
|
||||||
* Define valid TYPE (or category or code-path, however you like to think of it)
|
* Define valid TYPE (or category or code-path, however you like to think of it)
|
||||||
* and SUBTYPE s.
|
* and SUBTYPE s.
|
||||||
|
@ -24,7 +22,6 @@
|
||||||
#define DBG_TYPE_OTHERS (1 << 3) // 8
|
#define DBG_TYPE_OTHERS (1 << 3) // 8
|
||||||
/*-----------------END TYPEs------------------------------------------*/
|
/*-----------------END TYPEs------------------------------------------*/
|
||||||
#define NUMTYPES 4 // careful!
|
#define NUMTYPES 4 // careful!
|
||||||
|
|
||||||
/*-----------------BEGIN SUBTYPEs---------------------------------------*/
|
/*-----------------BEGIN SUBTYPEs---------------------------------------*/
|
||||||
|
|
||||||
/*-SUBTYPEs for TX : TYPE is DBG_TYPE_TX -----//
|
/*-SUBTYPEs for TX : TYPE is DBG_TYPE_TX -----//
|
||||||
|
@ -59,7 +56,6 @@
|
||||||
//TX_Misc
|
//TX_Misc
|
||||||
#define TX_OSAL_DBG (TX << 17)
|
#define TX_OSAL_DBG (TX << 17)
|
||||||
|
|
||||||
|
|
||||||
//--SUBTYPEs for ------INIT & EXIT---------------------
|
//--SUBTYPEs for ------INIT & EXIT---------------------
|
||||||
/*------------ TYPE is DBG_TYPE_INITEXIT -----//
|
/*------------ TYPE is DBG_TYPE_INITEXIT -----//
|
||||||
DriverEntry.c, bcmfwup.c, ChipDetectTask.c, HaltnReset.c, InterfaceDDR.c */
|
DriverEntry.c, bcmfwup.c, ChipDetectTask.c, HaltnReset.c, InterfaceDDR.c */
|
||||||
|
@ -73,7 +69,6 @@ DriverEntry.c, bcmfwup.c, ChipDetectTask.c, HaltnReset.c, InterfaceDDR.c */
|
||||||
#define INIT_DISP (MP << 6)
|
#define INIT_DISP (MP << 6)
|
||||||
#define RX_INIT (MP << 7)
|
#define RX_INIT (MP << 7)
|
||||||
|
|
||||||
|
|
||||||
//-SUBTYPEs for --RX----------------------------------
|
//-SUBTYPEs for --RX----------------------------------
|
||||||
//------------RX : TYPE is DBG_TYPE_RX -----//
|
//------------RX : TYPE is DBG_TYPE_RX -----//
|
||||||
// Receive.c
|
// Receive.c
|
||||||
|
@ -84,14 +79,12 @@ DriverEntry.c, bcmfwup.c, ChipDetectTask.c, HaltnReset.c, InterfaceDDR.c */
|
||||||
#define MP_RETURN (RX << 1)
|
#define MP_RETURN (RX << 1)
|
||||||
#define LINK_MSG (RX << 2)
|
#define LINK_MSG (RX << 2)
|
||||||
|
|
||||||
|
|
||||||
//-SUBTYPEs for ----OTHER ROUTINES------------------
|
//-SUBTYPEs for ----OTHER ROUTINES------------------
|
||||||
//------------OTHERS : TYPE is DBG_TYPE_OTHER -----//
|
//------------OTHERS : TYPE is DBG_TYPE_OTHER -----//
|
||||||
// HaltnReset,CheckForHang,PnP,Misc,CmHost
|
// HaltnReset,CheckForHang,PnP,Misc,CmHost
|
||||||
// total 12 macros
|
// total 12 macros
|
||||||
#define OTHERS 1
|
#define OTHERS 1
|
||||||
// ??ISR.C
|
// ??ISR.C
|
||||||
|
|
||||||
#define ISR OTHERS
|
#define ISR OTHERS
|
||||||
#define MP_DPC (ISR << 0)
|
#define MP_DPC (ISR << 0)
|
||||||
|
|
||||||
|
@ -117,11 +110,8 @@ DriverEntry.c, bcmfwup.c, ChipDetectTask.c, HaltnReset.c, InterfaceDDR.c */
|
||||||
|
|
||||||
// CmHost.c
|
// CmHost.c
|
||||||
#define CMHOST OTHERS
|
#define CMHOST OTHERS
|
||||||
|
|
||||||
|
|
||||||
#define SERIAL (OTHERS << 12)
|
#define SERIAL (OTHERS << 12)
|
||||||
#define IDLE_MODE (OTHERS << 13)
|
#define IDLE_MODE (OTHERS << 13)
|
||||||
|
|
||||||
#define WRM (OTHERS << 14)
|
#define WRM (OTHERS << 14)
|
||||||
#define RDM (OTHERS << 15)
|
#define RDM (OTHERS << 15)
|
||||||
|
|
||||||
|
@ -145,7 +135,6 @@ DriverEntry.c, bcmfwup.c, ChipDetectTask.c, HaltnReset.c, InterfaceDDR.c */
|
||||||
#define CONN_MSG (CMHOST << 29)
|
#define CONN_MSG (CMHOST << 29)
|
||||||
/*-----------------END SUBTYPEs------------------------------------------*/
|
/*-----------------END SUBTYPEs------------------------------------------*/
|
||||||
|
|
||||||
|
|
||||||
/* Debug level
|
/* Debug level
|
||||||
* We have 8 debug levels, in (numerical) increasing order of verbosity.
|
* We have 8 debug levels, in (numerical) increasing order of verbosity.
|
||||||
* IMP: Currently implementing ONLY DBG_LVL_ALL , i.e. , all debug prints will
|
* IMP: Currently implementing ONLY DBG_LVL_ALL , i.e. , all debug prints will
|
||||||
|
@ -225,7 +214,8 @@ typedef struct _S_BCM_DEBUG_STATE {
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#define BCM_DEBUG_PRINT_BUFFER(Adapter, Type, SubType, dbg_level, buffer, bufferlen) do { \
|
#define BCM_DEBUG_PRINT_BUFFER(Adapter, Type, SubType, dbg_level, buffer, bufferlen) \
|
||||||
|
do { \
|
||||||
if (DBG_TYPE_PRINTK == Type || \
|
if (DBG_TYPE_PRINTK == Type || \
|
||||||
(Adapter && \
|
(Adapter && \
|
||||||
(dbg_level & DBG_LVL_BITMASK) <= Adapter->stDebugState.debug_level && \
|
(dbg_level & DBG_LVL_BITMASK) <= Adapter->stDebugState.debug_level && \
|
||||||
|
@ -237,7 +227,6 @@ typedef struct _S_BCM_DEBUG_STATE {
|
||||||
} \
|
} \
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
|
|
||||||
#define BCM_SHOW_DEBUG_BITMAP(Adapter) do { \
|
#define BCM_SHOW_DEBUG_BITMAP(Adapter) do { \
|
||||||
int i; \
|
int i; \
|
||||||
for (i = 0; i < (NUMTYPES * 2) + 1; i++) { \
|
for (i = 0; i < (NUMTYPES * 2) + 1; i++) { \
|
||||||
|
@ -251,4 +240,3 @@ typedef struct _S_BCM_DEBUG_STATE {
|
||||||
} while (0)
|
} while (0)
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue