diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2014-07-13 10:42:41 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-13 12:22:34 -0700 |
commit | 80f0d0923f7a8f580db2415e30580585e5d7f272 (patch) | |
tree | 97b64a3c348a752b67328d4c4fe902d1b14cd7dc /drivers/staging/vt6656/wcmd.c | |
parent | f6a7125c82e8904436d09cf9002194143e4d7019 (diff) |
staging: vt6656: replace typedef enum tagCMD_CODE with enum vnt_cmd
Replacing the variables.
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6656/wcmd.c')
-rw-r--r-- | drivers/staging/vt6656/wcmd.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/vt6656/wcmd.c b/drivers/staging/vt6656/wcmd.c index ade0f8117af7..3d9ace2febd0 100644 --- a/drivers/staging/vt6656/wcmd.c +++ b/drivers/staging/vt6656/wcmd.c @@ -146,13 +146,13 @@ static int s_bCommandComplete(struct vnt_private *priv) return true; } - priv->eCommand = priv->eCmdQueue[priv->uCmdDequeueIdx].eCmd; + priv->command = priv->eCmdQueue[priv->uCmdDequeueIdx].cmd; ADD_ONE_WITH_WRAP_AROUND(priv->uCmdDequeueIdx, CMD_Q_SIZE); priv->cbFreeCmdQueue++; priv->bCmdRunning = true; - switch (priv->eCommand) { + switch (priv->command) { case WLAN_CMD_INIT_MAC80211: priv->eCommandState = WLAN_CMD_INIT_MAC80211_START; break; @@ -186,13 +186,13 @@ static int s_bCommandComplete(struct vnt_private *priv) return true; } -int bScheduleCommand(struct vnt_private *priv, CMD_CODE command, u8 *item0) +int bScheduleCommand(struct vnt_private *priv, enum vnt_cmd command, u8 *item0) { if (priv->cbFreeCmdQueue == 0) return false; - priv->eCmdQueue[priv->uCmdEnqueueIdx].eCmd = command; + priv->eCmdQueue[priv->uCmdEnqueueIdx].cmd = command; ADD_ONE_WITH_WRAP_AROUND(priv->uCmdEnqueueIdx, CMD_Q_SIZE); priv->cbFreeCmdQueue--; |