]> www.infradead.org Git - linux.git/commitdiff
Staging: rtl8192e: Rename variable CmdID
authorTree Davies <tdavies@darkphysics.net>
Mon, 26 Aug 2024 00:17:22 +0000 (17:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2024 09:55:20 +0000 (11:55 +0200)
Rename variable CmdID to cmd_id
to fix checkpatch warning Avoid CamelCase.

Signed-off-by: Tree Davies <tdavies@darkphysics.net>
Tested-by: Philipp Hortmann <philipp.g.hortmann@gmail.com>
Link: https://lore.kernel.org/r/20240826001724.274811-5-tdavies@darkphysics.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192e/rtl8192e/r8192E_phy.c
drivers/staging/rtl8192e/rtllib.h

index 1088352a315de9cb5b3e4921869307b1857160e9..939f0a7c3a900e5c609d6e4b6f14b4ca16d90e63 100644 (file)
@@ -509,7 +509,7 @@ static void _rtl92e_set_tx_power_level(struct net_device *dev, u8 channel)
 static u8 _rtl92e_phy_set_sw_chnl_cmd_array(struct net_device *dev,
                                            struct sw_chnl_cmd *CmdTable,
                                            u32 CmdTableIdx, u32 CmdTableSz,
-                                           enum sw_chnl_cmd_id CmdID,
+                                           enum sw_chnl_cmd_id cmd_id,
                                            u32 Para1, u32 Para2, u32 msDelay)
 {
        struct sw_chnl_cmd *pCmd;
@@ -524,7 +524,7 @@ static u8 _rtl92e_phy_set_sw_chnl_cmd_array(struct net_device *dev,
        }
 
        pCmd = CmdTable + CmdTableIdx;
-       pCmd->CmdID = CmdID;
+       pCmd->cmd_id = cmd_id;
        pCmd->Para1 = Para1;
        pCmd->Para2 = Para2;
        pCmd->msDelay = msDelay;
@@ -601,7 +601,7 @@ static u8 _rtl92e_phy_switch_channel_step(struct net_device *dev, u8 channel,
                                break;
                        }
 
-                       if (CurrentCmd && CurrentCmd->CmdID == cmd_id_end) {
+                       if (CurrentCmd && CurrentCmd->cmd_id == cmd_id_end) {
                                if ((*stage) == 2)
                                        return true;
                                (*stage)++;
@@ -611,7 +611,7 @@ static u8 _rtl92e_phy_switch_channel_step(struct net_device *dev, u8 channel,
 
                        if (!CurrentCmd)
                                continue;
-                       switch (CurrentCmd->CmdID) {
+                       switch (CurrentCmd->cmd_id) {
                        case cmd_id_set_tx_power_level:
                                if (priv->ic_cut > VERSION_8190_BD)
                                        _rtl92e_set_tx_power_level(dev,
index f588f01d66fa9e5b6430549a1ba7172116972cc1..41ae98e01a30bfe62c986931fd3e1d0033a3bfde 100644 (file)
@@ -163,7 +163,7 @@ enum sw_chnl_cmd_id {
 };
 
 struct sw_chnl_cmd {
-       enum sw_chnl_cmd_id CmdID;
+       enum sw_chnl_cmd_id cmd_id;
        u32                     Para1;
        u32                     Para2;
        u32                     msDelay;