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

staging: vt6656: bScheduleCommand remove camel case

Camel case changes
pDevice -> priv
eCommand -> command
pbyItem0 -> item0
Signed-off-by: default avatarMalcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d287093e
...@@ -189,19 +189,19 @@ static int s_bCommandComplete(struct vnt_private *priv) ...@@ -189,19 +189,19 @@ static int s_bCommandComplete(struct vnt_private *priv)
return true; return true;
} }
int bScheduleCommand(struct vnt_private *pDevice, int bScheduleCommand(struct vnt_private *priv, CMD_CODE command, u8 *item0)
CMD_CODE eCommand, u8 *pbyItem0)
{ {
if (pDevice->cbFreeCmdQueue == 0) if (priv->cbFreeCmdQueue == 0)
return false; return false;
pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].eCmd = eCommand;
ADD_ONE_WITH_WRAP_AROUND(pDevice->uCmdEnqueueIdx, CMD_Q_SIZE); priv->eCmdQueue[priv->uCmdEnqueueIdx].eCmd = command;
pDevice->cbFreeCmdQueue--;
if (pDevice->bCmdRunning == false) ADD_ONE_WITH_WRAP_AROUND(priv->uCmdEnqueueIdx, CMD_Q_SIZE);
s_bCommandComplete(pDevice); priv->cbFreeCmdQueue--;
if (priv->bCmdRunning == false)
s_bCommandComplete(priv);
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