diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2014-07-12 07:53:46 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-12 13:20:14 -0700 |
commit | f7e9ed41c9ef4a755d7e941b1cc0976b01e90940 (patch) | |
tree | 69b580cb3b5355dc73291c45ffc5140e6e193ba4 | |
parent | d287093e4cd76b28e1312ae6ff577aea20aba47c (diff) |
staging: vt6656: bScheduleCommand remove camel case
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>
-rw-r--r-- | drivers/staging/vt6656/wcmd.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/staging/vt6656/wcmd.c b/drivers/staging/vt6656/wcmd.c index cdd828c25a0..76e7f78e179 100644 --- a/drivers/staging/vt6656/wcmd.c +++ b/drivers/staging/vt6656/wcmd.c @@ -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; |