Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -1227,11 +1227,11 @@ bool rtl8192_SetRFPowerState(struct net_device *dev,
 * return:    true if finished, false otherwise
 * 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 Para1, u32 Para2, u32 msDelay)
{
	SwChnlCmd *pCmd;
	struct SwChnlCmd *pCmd;

	if (CmdTable == NULL) {
		RT_TRACE(COMP_ERR, "%s(): CmdTable cannot be NULL\n", __func__);
@@ -1268,13 +1268,13 @@ static u8 rtl8192_phy_SwChnlStepByStep(struct net_device *dev, u8 channel,
				       u8 *stage, u8 *step, u32 *delay)
{
	struct r8192_priv *priv = ieee80211_priv(dev);
	SwChnlCmd	PreCommonCmd[MAX_PRECMD_CNT];
	struct SwChnlCmd   PreCommonCmd[MAX_PRECMD_CNT];
	u32		   PreCommonCmdCnt;
	SwChnlCmd	PostCommonCmd[MAX_POSTCMD_CNT];
	struct SwChnlCmd   PostCommonCmd[MAX_POSTCMD_CNT];
	u32		   PostCommonCmdCnt;
	SwChnlCmd	RfDependCmd[MAX_RFDEPENDCMD_CNT];
	struct SwChnlCmd   RfDependCmd[MAX_RFDEPENDCMD_CNT];
	u32		   RfDependCmdCnt;
	SwChnlCmd	*CurrentCmd = NULL;
	struct SwChnlCmd  *CurrentCmd = NULL;
	u8		   eRFPath;

	RT_TRACE(COMP_CH, "%s() stage: %d, step: %d, channel: %d\n",
+2 −2
Original line number Diff line number Diff line
@@ -19,12 +19,12 @@ enum SwChnlCmdID {

/* -----------------------Define structure---------------------- */
/* 1. Switch channel related */
typedef struct _SwChnlCmd {
struct SwChnlCmd {
	enum SwChnlCmdID	CmdID;
	u32		        Para1;
	u32		        Para2;
	u32		        msDelay;
} __packed SwChnlCmd;
} __packed;

extern u32 rtl819XMACPHY_Array_PG[];
extern u32 rtl819XPHY_REG_1T2RArray[];