staging:rtl8192u: Rename SwChnlCmd - Style
authorJohn Whitmore <johnfwhitmore@gmail.com>
Thu, 26 Jul 2018 19:24:11 +0000 (20:24 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 29 Jul 2018 08:13:25 +0000 (10:13 +0200)
Rename the structure SwChnlCmd to sw_chnl_cmd. This change clears the
checkpatch issue with CamelCase naming. The change is purely a coding
style change and should have no impact on runtime code execution.

Signed-off-by: John Whitmore <johnfwhitmore@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r819xU_phy.c
drivers/staging/rtl8192u/r819xU_phy.h

index 75fcd3134b6d0363766bacb77f4208e305016caa..4a49bc1f139c78b521c9fe52ba995ebf324cdd2a 100644 (file)
@@ -1215,8 +1215,8 @@ bool rtl8192_SetRFPowerState(struct net_device *dev,
 }
 
 /******************************************************************************
- * function:  This function sets command table variable (struct SwChnlCmd).
- * input:     SwChnlCmd      *CmdTable    //table to be set
+ * function:  This function sets command table variable (struct sw_chnl_cmd).
+ * input:     sw_chnl_cmd      *CmdTable    //table to be set
  *            u32            CmdTableIdx  //variable index in table to be set
  *            u32            CmdTableSz   //table size
  *            switch_chan_cmd_id    CmdID        //command ID to set
@@ -1227,11 +1227,11 @@ bool rtl8192_SetRFPowerState(struct net_device *dev,
  * return:    true if finished, false otherwise
  * notice:
  ******************************************************************************/
-static u8 rtl8192_phy_SetSwChnlCmdArray(struct SwChnlCmd *CmdTable, u32 CmdTableIdx,
+static u8 rtl8192_phy_SetSwChnlCmdArray(struct sw_chnl_cmd *CmdTable, u32 CmdTableIdx,
                                        u32 CmdTableSz, enum switch_chan_cmd_id CmdID,
                                        u32 Para1, u32 Para2, u32 msDelay)
 {
-       struct SwChnlCmd *pCmd;
+       struct sw_chnl_cmd *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);
-       struct SwChnlCmd   PreCommonCmd[MAX_PRECMD_CNT];
+       struct sw_chnl_cmd   PreCommonCmd[MAX_PRECMD_CNT];
        u32                PreCommonCmdCnt;
-       struct SwChnlCmd   PostCommonCmd[MAX_POSTCMD_CNT];
+       struct sw_chnl_cmd   PostCommonCmd[MAX_POSTCMD_CNT];
        u32                PostCommonCmdCnt;
-       struct SwChnlCmd   RfDependCmd[MAX_RFDEPENDCMD_CNT];
+       struct sw_chnl_cmd   RfDependCmd[MAX_RFDEPENDCMD_CNT];
        u32                RfDependCmdCnt;
-       struct SwChnlCmd  *CurrentCmd = NULL;
+       struct sw_chnl_cmd  *CurrentCmd = NULL;
        u8                 eRFPath;
 
        RT_TRACE(COMP_CH, "%s() stage: %d, step: %d, channel: %d\n",
index 75aa56ddd22f862990c57434c194a36ebbed5b07..509b18415127ae8207fdd43c0c4198afc61c0fb6 100644 (file)
@@ -18,7 +18,7 @@ enum switch_chan_cmd_id {
 
 /* -----------------------Define structure---------------------- */
 /* 1. Switch channel related */
-struct SwChnlCmd {
+struct sw_chnl_cmd {
        enum switch_chan_cmd_id CmdID;
        u32                     Para1;
        u32                     Para2;