Commit 74964861 authored by Tree Davies's avatar Tree Davies Committed by Greg Kroah-Hartman

Staging: rtl8192e: Rename variable CmdID_End

Rename variable CmdID_End to cmd_id_end
to fix checkpatch warning Avoid CamelCase.
Signed-off-by: default avatarTree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20240821030856.57423-2-tdavies@darkphysics.netSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 4188ab05
...@@ -556,14 +556,14 @@ static u8 _rtl92e_phy_switch_channel_step(struct net_device *dev, u8 channel, ...@@ -556,14 +556,14 @@ static u8 _rtl92e_phy_switch_channel_step(struct net_device *dev, u8 channel,
0, 0, 0); 0, 0, 0);
_rtl92e_phy_set_sw_chnl_cmd_array(dev, ieee->PreCommonCmd, _rtl92e_phy_set_sw_chnl_cmd_array(dev, ieee->PreCommonCmd,
PreCommonCmdCnt++, PreCommonCmdCnt++,
MAX_PRECMD_CNT, CmdID_End, MAX_PRECMD_CNT, cmd_id_end,
0, 0, 0); 0, 0, 0);
PostCommonCmdCnt = 0; PostCommonCmdCnt = 0;
_rtl92e_phy_set_sw_chnl_cmd_array(dev, ieee->PostCommonCmd, _rtl92e_phy_set_sw_chnl_cmd_array(dev, ieee->PostCommonCmd,
PostCommonCmdCnt++, PostCommonCmdCnt++,
MAX_POSTCMD_CNT, CmdID_End, MAX_POSTCMD_CNT, cmd_id_end,
0, 0, 0); 0, 0, 0);
RfDependCmdCnt = 0; RfDependCmdCnt = 0;
...@@ -585,7 +585,7 @@ static u8 _rtl92e_phy_switch_channel_step(struct net_device *dev, u8 channel, ...@@ -585,7 +585,7 @@ static u8 _rtl92e_phy_switch_channel_step(struct net_device *dev, u8 channel,
ieee->RfDependCmd, ieee->RfDependCmd,
RfDependCmdCnt++, RfDependCmdCnt++,
MAX_RFDEPENDCMD_CNT, MAX_RFDEPENDCMD_CNT,
CmdID_End, 0, 0, 0); cmd_id_end, 0, 0, 0);
do { do {
switch (*stage) { switch (*stage) {
...@@ -600,7 +600,7 @@ static u8 _rtl92e_phy_switch_channel_step(struct net_device *dev, u8 channel, ...@@ -600,7 +600,7 @@ static u8 _rtl92e_phy_switch_channel_step(struct net_device *dev, u8 channel,
break; break;
} }
if (CurrentCmd && CurrentCmd->CmdID == CmdID_End) { if (CurrentCmd && CurrentCmd->CmdID == cmd_id_end) {
if ((*stage) == 2) if ((*stage) == 2)
return true; return true;
(*stage)++; (*stage)++;
......
...@@ -153,7 +153,7 @@ struct cb_desc { ...@@ -153,7 +153,7 @@ struct cb_desc {
}; };
enum sw_chnl_cmd_id { enum sw_chnl_cmd_id {
CmdID_End, cmd_id_end,
CmdID_SetTxPowerLevel, CmdID_SetTxPowerLevel,
CmdID_BBRegWrite10, CmdID_BBRegWrite10,
CmdID_WritePortUlong, CmdID_WritePortUlong,
......
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