]> www.infradead.org Git - linux.git/commitdiff
Staging: rtl8192e: Rename variable CmdID_RF_WriteReg
authorTree Davies <tdavies@darkphysics.net>
Mon, 26 Aug 2024 00:17:21 +0000 (17:17 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 Aug 2024 09:55:20 +0000 (11:55 +0200)
Rename variable CmdID_RF_WriteReg to cmd_id_rf_write_reg
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-4-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 6bed5363ec54ae6f908e1fedbdf8bd8b7333fac3..1088352a315de9cb5b3e4921869307b1857160e9 100644 (file)
@@ -579,7 +579,7 @@ static u8 _rtl92e_phy_switch_channel_step(struct net_device *dev, u8 channel,
                                                  ieee->RfDependCmd,
                                                  RfDependCmdCnt++,
                                                  MAX_RFDEPENDCMD_CNT,
-                                                 CmdID_RF_WriteReg,
+                                                 cmd_id_rf_write_reg,
                                                  rZebra1_Channel,
                                                  channel, 10);
                _rtl92e_phy_set_sw_chnl_cmd_array(dev,
@@ -629,7 +629,7 @@ static u8 _rtl92e_phy_switch_channel_step(struct net_device *dev, u8 channel,
                                rtl92e_writeb(dev, CurrentCmd->Para1,
                                              CurrentCmd->Para2);
                                break;
-                       case CmdID_RF_WriteReg:
+                       case cmd_id_rf_write_reg:
                                for (eRFPath = 0; eRFPath <
                                     priv->num_total_rf_path; eRFPath++)
                                        rtl92e_set_rf_reg(dev,
index 8ca36d1c7fb1a9514dd06f0a7b586832168d1429..f588f01d66fa9e5b6430549a1ba7172116972cc1 100644 (file)
@@ -159,7 +159,7 @@ enum sw_chnl_cmd_id {
        cmd_id_write_port_ulong,
        cmd_id_write_port_ushort,
        cmd_id_write_port_uchar,
-       CmdID_RF_WriteReg,
+       cmd_id_rf_write_reg,
 };
 
 struct sw_chnl_cmd {