staging: vt6656: bScheduleCommand remove camel case
authorMalcolm Priestley <tvboxspy@gmail.com>
Sat, 12 Jul 2014 06:53:46 +0000 (07:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Jul 2014 20:20:14 +0000 (13:20 -0700)
Camel case changes
pDevice -> priv
eCommand -> command
pbyItem0 -> item0

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/vt6656/wcmd.c

index cdd828c25a07773ecd7e469c4cf542e52a13dc60..76e7f78e179e691a10a54c8c457a1c1e48c7e164 100644 (file)
@@ -189,19 +189,19 @@ static int s_bCommandComplete(struct vnt_private *priv)
        return true;
 }
 
-int bScheduleCommand(struct vnt_private *pDevice,
-               CMD_CODE eCommand, u8 *pbyItem0)
+int bScheduleCommand(struct vnt_private *priv, CMD_CODE command, u8 *item0)
 {
 
-       if (pDevice->cbFreeCmdQueue == 0)
+       if (priv->cbFreeCmdQueue == 0)
                return false;
-       pDevice->eCmdQueue[pDevice->uCmdEnqueueIdx].eCmd = eCommand;
 
-       ADD_ONE_WITH_WRAP_AROUND(pDevice->uCmdEnqueueIdx, CMD_Q_SIZE);
-       pDevice->cbFreeCmdQueue--;
+       priv->eCmdQueue[priv->uCmdEnqueueIdx].eCmd = command;
 
-       if (pDevice->bCmdRunning == false)
-               s_bCommandComplete(pDevice);
+       ADD_ONE_WITH_WRAP_AROUND(priv->uCmdEnqueueIdx, CMD_Q_SIZE);
+       priv->cbFreeCmdQueue--;
+
+       if (priv->bCmdRunning == false)
+               s_bCommandComplete(priv);
 
        return true;