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

Staging: rtl8192e: Rename variable OpMode

Rename variable OpMode to op_mode to fix checkpatch
warning Avoid CamelCase.
Signed-off-by: default avatarTree Davies <tdavies@darkphysics.net>
Link: https://lore.kernel.org/r/20231225202314.31869-7-tdavies@darkphysics.netSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 9cbaf63c
...@@ -51,12 +51,12 @@ void rtl92e_set_reg(struct net_device *dev, u8 variable, u8 *val) ...@@ -51,12 +51,12 @@ void rtl92e_set_reg(struct net_device *dev, u8 variable, u8 *val)
case HW_VAR_MEDIA_STATUS: case HW_VAR_MEDIA_STATUS:
{ {
enum rt_op_mode OpMode = *((enum rt_op_mode *)(val)); enum rt_op_mode op_mode = *((enum rt_op_mode *)(val));
u8 btMsr = rtl92e_readb(dev, MSR); u8 btMsr = rtl92e_readb(dev, MSR);
btMsr &= 0xfc; btMsr &= 0xfc;
switch (OpMode) { switch (op_mode) {
case RT_OP_MODE_INFRASTRUCTURE: case RT_OP_MODE_INFRASTRUCTURE:
btMsr |= MSR_INFRA; btMsr |= MSR_INFRA;
break; break;
...@@ -1693,12 +1693,12 @@ void rtl92e_stop_adapter(struct net_device *dev, bool reset) ...@@ -1693,12 +1693,12 @@ void rtl92e_stop_adapter(struct net_device *dev, bool reset)
{ {
struct r8192_priv *priv = rtllib_priv(dev); struct r8192_priv *priv = rtllib_priv(dev);
int i; int i;
u8 OpMode; u8 op_mode;
u8 u1bTmp; u8 u1bTmp;
u32 ulRegRead; u32 ulRegRead;
OpMode = RT_OP_MODE_NO_LINK; op_mode = RT_OP_MODE_NO_LINK;
priv->rtllib->SetHwRegHandler(dev, HW_VAR_MEDIA_STATUS, &OpMode); priv->rtllib->SetHwRegHandler(dev, HW_VAR_MEDIA_STATUS, &op_mode);
if (!priv->rtllib->bSupportRemoteWakeUp) { if (!priv->rtllib->bSupportRemoteWakeUp) {
u1bTmp = 0x0; u1bTmp = 0x0;
......
...@@ -1187,7 +1187,7 @@ struct rtllib_device { ...@@ -1187,7 +1187,7 @@ struct rtllib_device {
unsigned long status; unsigned long status;
u8 CntAfterLink; u8 CntAfterLink;
enum rt_op_mode OpMode; enum rt_op_mode op_mode;
/* The last AssocReq/Resp IEs */ /* The last AssocReq/Resp IEs */
u8 *assocreq_ies, *assocresp_ies; u8 *assocreq_ies, *assocresp_ies;
......
...@@ -2245,7 +2245,7 @@ static void rtllib_MlmeDisassociateRequest(struct rtllib_device *rtllib, ...@@ -2245,7 +2245,7 @@ static void rtllib_MlmeDisassociateRequest(struct rtllib_device *rtllib,
u8 *asSta, u8 asRsn) u8 *asSta, u8 asRsn)
{ {
u8 i; u8 i;
u8 OpMode; u8 op_mode;
RemovePeerTS(rtllib, asSta); RemovePeerTS(rtllib, asSta);
...@@ -2254,10 +2254,10 @@ static void rtllib_MlmeDisassociateRequest(struct rtllib_device *rtllib, ...@@ -2254,10 +2254,10 @@ static void rtllib_MlmeDisassociateRequest(struct rtllib_device *rtllib,
for (i = 0; i < 6; i++) for (i = 0; i < 6; i++)
rtllib->current_network.bssid[i] = 0x22; rtllib->current_network.bssid[i] = 0x22;
OpMode = RT_OP_MODE_NO_LINK; op_mode = RT_OP_MODE_NO_LINK;
rtllib->OpMode = RT_OP_MODE_NO_LINK; rtllib->op_mode = RT_OP_MODE_NO_LINK;
rtllib->SetHwRegHandler(rtllib->dev, HW_VAR_MEDIA_STATUS, rtllib->SetHwRegHandler(rtllib->dev, HW_VAR_MEDIA_STATUS,
(u8 *)(&OpMode)); (u8 *)(&op_mode));
rtllib_disassociate(rtllib); rtllib_disassociate(rtllib);
rtllib->SetHwRegHandler(rtllib->dev, HW_VAR_BSSID, rtllib->SetHwRegHandler(rtllib->dev, HW_VAR_BSSID,
......
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