Commit d287093e authored by Malcolm Priestley's avatar Malcolm Priestley Committed by Greg Kroah-Hartman

staging: vt6656: s_bCommandComplete clean up and remove camel case

pDevice -> priv
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent a675dc21
...@@ -139,52 +139,52 @@ void vRunCommand(struct work_struct *work) ...@@ -139,52 +139,52 @@ void vRunCommand(struct work_struct *work)
return; return;
} }
static int s_bCommandComplete(struct vnt_private *pDevice) static int s_bCommandComplete(struct vnt_private *priv)
{ {
pDevice->eCommandState = WLAN_CMD_IDLE; priv->eCommandState = WLAN_CMD_IDLE;
if (pDevice->cbFreeCmdQueue == CMD_Q_SIZE) { if (priv->cbFreeCmdQueue == CMD_Q_SIZE) {
//Command Queue Empty /* Command Queue Empty */
pDevice->bCmdRunning = false; priv->bCmdRunning = false;
return true; return true;
} }
pDevice->eCommand = pDevice->eCmdQueue[pDevice->uCmdDequeueIdx].eCmd; priv->eCommand = priv->eCmdQueue[priv->uCmdDequeueIdx].eCmd;
ADD_ONE_WITH_WRAP_AROUND(pDevice->uCmdDequeueIdx, CMD_Q_SIZE); ADD_ONE_WITH_WRAP_AROUND(priv->uCmdDequeueIdx, CMD_Q_SIZE);
pDevice->cbFreeCmdQueue++; priv->cbFreeCmdQueue++;
pDevice->bCmdRunning = true; priv->bCmdRunning = true;
switch (pDevice->eCommand) { switch (priv->eCommand) {
case WLAN_CMD_INIT_MAC80211: case WLAN_CMD_INIT_MAC80211:
pDevice->eCommandState = WLAN_CMD_INIT_MAC80211_START; priv->eCommandState = WLAN_CMD_INIT_MAC80211_START;
break; break;
case WLAN_CMD_TBTT_WAKEUP: case WLAN_CMD_TBTT_WAKEUP:
pDevice->eCommandState = WLAN_CMD_TBTT_WAKEUP_START; priv->eCommandState = WLAN_CMD_TBTT_WAKEUP_START;
break; break;
case WLAN_CMD_BECON_SEND: case WLAN_CMD_BECON_SEND:
pDevice->eCommandState = WLAN_CMD_BECON_SEND_START; priv->eCommandState = WLAN_CMD_BECON_SEND_START;
break; break;
case WLAN_CMD_SETPOWER: case WLAN_CMD_SETPOWER:
pDevice->eCommandState = WLAN_CMD_SETPOWER_START; priv->eCommandState = WLAN_CMD_SETPOWER_START;
break; break;
case WLAN_CMD_CHANGE_ANTENNA: case WLAN_CMD_CHANGE_ANTENNA:
pDevice->eCommandState = WLAN_CMD_CHANGE_ANTENNA_START; priv->eCommandState = WLAN_CMD_CHANGE_ANTENNA_START;
break; break;
case WLAN_CMD_11H_CHSW: case WLAN_CMD_11H_CHSW:
pDevice->eCommandState = WLAN_CMD_11H_CHSW_START; priv->eCommandState = WLAN_CMD_11H_CHSW_START;
break; break;
default: default:
break; break;
} }
vCommandTimerWait(pDevice, 0); vCommandTimerWait(priv, 0);
return true; return true;
} }
......
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