Commit 9821cb6d authored by John Whitmore's avatar John Whitmore Committed by Greg Kroah-Hartman

staging:rtl8192u: remove typedef from structure SwChnlCmd - Style

Checkpatch warns against creation of new types in code. This patch simply
removes the "typedef" declaration of the structure SwChnlCmd to clear this
issue. Simple coding style issue which should not impact runtime execution.
Signed-off-by: default avatarJohn Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 8b5c53e6
...@@ -1227,11 +1227,11 @@ bool rtl8192_SetRFPowerState(struct net_device *dev, ...@@ -1227,11 +1227,11 @@ bool rtl8192_SetRFPowerState(struct net_device *dev,
* return: true if finished, false otherwise * return: true if finished, false otherwise
* notice: * notice:
******************************************************************************/ ******************************************************************************/
static u8 rtl8192_phy_SetSwChnlCmdArray(SwChnlCmd *CmdTable, u32 CmdTableIdx, static u8 rtl8192_phy_SetSwChnlCmdArray(struct SwChnlCmd *CmdTable, u32 CmdTableIdx,
u32 CmdTableSz, enum SwChnlCmdID CmdID, u32 CmdTableSz, enum SwChnlCmdID CmdID,
u32 Para1, u32 Para2, u32 msDelay) u32 Para1, u32 Para2, u32 msDelay)
{ {
SwChnlCmd *pCmd; struct SwChnlCmd *pCmd;
if (CmdTable == NULL) { if (CmdTable == NULL) {
RT_TRACE(COMP_ERR, "%s(): CmdTable cannot be NULL\n", __func__); RT_TRACE(COMP_ERR, "%s(): CmdTable cannot be NULL\n", __func__);
...@@ -1268,14 +1268,14 @@ static u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel, ...@@ -1268,14 +1268,14 @@ static u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel,
u8 *stage, u8 *step, u32 *delay) u8 *stage, u8 *step, u32 *delay)
{ {
struct r8192_priv *priv = ieee80211_priv(dev); struct r8192_priv *priv = ieee80211_priv(dev);
SwChnlCmd PreCommonCmd[MAX_PRECMD_CNT]; struct SwChnlCmd PreCommonCmd[MAX_PRECMD_CNT];
u32 PreCommonCmdCnt; u32 PreCommonCmdCnt;
SwChnlCmd PostCommonCmd[MAX_POSTCMD_CNT]; struct SwChnlCmd PostCommonCmd[MAX_POSTCMD_CNT];
u32 PostCommonCmdCnt; u32 PostCommonCmdCnt;
SwChnlCmd RfDependCmd[MAX_RFDEPENDCMD_CNT]; struct SwChnlCmd RfDependCmd[MAX_RFDEPENDCMD_CNT];
u32 RfDependCmdCnt; u32 RfDependCmdCnt;
SwChnlCmd *CurrentCmd = NULL; struct SwChnlCmd *CurrentCmd = NULL;
u8 eRFPath; u8 eRFPath;
RT_TRACE(COMP_CH, "%s() stage: %d, step: %d, channel: %d\n", RT_TRACE(COMP_CH, "%s() stage: %d, step: %d, channel: %d\n",
__func__, *stage, *step, channel); __func__, *stage, *step, channel);
......
...@@ -19,12 +19,12 @@ enum SwChnlCmdID { ...@@ -19,12 +19,12 @@ enum SwChnlCmdID {
/* -----------------------Define structure---------------------- */ /* -----------------------Define structure---------------------- */
/* 1. Switch channel related */ /* 1. Switch channel related */
typedef struct _SwChnlCmd { struct SwChnlCmd {
enum SwChnlCmdID CmdID; enum SwChnlCmdID CmdID;
u32 Para1; u32 Para1;
u32 Para2; u32 Para2;
u32 msDelay; u32 msDelay;
} __packed SwChnlCmd; } __packed;
extern u32 rtl819XMACPHY_Array_PG[]; extern u32 rtl819XMACPHY_Array_PG[];
extern u32 rtl819XPHY_REG_1T2RArray[]; extern u32 rtl819XPHY_REG_1T2RArray[];
......
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