Commit 4162433a authored by John Whitmore's avatar John Whitmore Committed by Greg Kroah-Hartman

staging:rtl8192u: remove typedef of enumeration SwChnlCmdID - Style

To clear a checkpatch issue removed the typedef of the enumeration SwChnlCmdID
this should not impact runtime code as it's only a coding style change.
Signed-off-by: default avatarJohn Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 153c6b11
...@@ -1221,7 +1221,7 @@ bool rtl8192_SetRFPowerState(struct net_device *dev, ...@@ -1221,7 +1221,7 @@ bool rtl8192_SetRFPowerState(struct net_device *dev,
* notice: * notice:
******************************************************************************/ ******************************************************************************/
static u8 rtl8192_phy_SetSwChnlCmdArray(SwChnlCmd *CmdTable, u32 CmdTableIdx, static u8 rtl8192_phy_SetSwChnlCmdArray(SwChnlCmd *CmdTable, u32 CmdTableIdx,
u32 CmdTableSz, SwChnlCmdID CmdID, u32 CmdTableSz, enum SwChnlCmdID CmdID,
u32 Para1, u32 Para2, u32 msDelay) u32 Para1, u32 Para2, u32 msDelay)
{ {
SwChnlCmd *pCmd; SwChnlCmd *pCmd;
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
#define MAX_RFDEPENDCMD_CNT 16 #define MAX_RFDEPENDCMD_CNT 16
#define MAX_POSTCMD_CNT 16 #define MAX_POSTCMD_CNT 16
typedef enum _SwChnlCmdID { enum SwChnlCmdID {
CmdID_End, CmdID_End,
CmdID_SetTxPowerLevel, CmdID_SetTxPowerLevel,
CmdID_BBRegWrite10, CmdID_BBRegWrite10,
...@@ -15,12 +15,12 @@ typedef enum _SwChnlCmdID { ...@@ -15,12 +15,12 @@ typedef enum _SwChnlCmdID {
CmdID_WritePortUshort, CmdID_WritePortUshort,
CmdID_WritePortUchar, CmdID_WritePortUchar,
CmdID_RF_WriteReg, CmdID_RF_WriteReg,
} SwChnlCmdID; };
/* -----------------------Define structure---------------------- */ /* -----------------------Define structure---------------------- */
/* 1. Switch channel related */ /* 1. Switch channel related */
typedef struct _SwChnlCmd { typedef struct _SwChnlCmd {
SwChnlCmdID CmdID; enum SwChnlCmdID CmdID;
u32 Para1; u32 Para1;
u32 Para2; u32 Para2;
u32 msDelay; u32 msDelay;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment