staging: vt6656: replace typedef enum tagCMD_STATE with enum vnt_cmd_state
authorMalcolm Priestley <tvboxspy@gmail.com>
Sun, 13 Jul 2014 09:42:42 +0000 (10:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jul 2014 19:22:34 +0000 (12:22 -0700)
Replacing variables.

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

index 4630206710dbb11daa3f7f3f6e913220a84caa0c..0c9166e2969ab60b3af8b88ec185884cb6819f74 100644 (file)
@@ -398,7 +398,7 @@ struct vnt_private {
        /* Beacon releated */
        u16 wSeqCounter;
 
-       CMD_STATE eCommandState;
+       enum vnt_cmd_state command_state;
 
        enum vnt_cmd command;
 
index 3d9ace2febd04058cc28af0af197114980797dec..e0ad20aa49f5bad4a3ef5d9c9cb89101384b5b49 100644 (file)
@@ -67,7 +67,7 @@ void vRunCommand(struct work_struct *work)
        if (priv->bCmdRunning != true)
                return;
 
-       switch (priv->eCommandState) {
+       switch (priv->command_state) {
        case WLAN_CMD_INIT_MAC80211_START:
                if (priv->mac_hw)
                        break;
@@ -139,7 +139,7 @@ void vRunCommand(struct work_struct *work)
 static int s_bCommandComplete(struct vnt_private *priv)
 {
 
-       priv->eCommandState = WLAN_CMD_IDLE;
+       priv->command_state = WLAN_CMD_IDLE;
        if (priv->cbFreeCmdQueue == CMD_Q_SIZE) {
                /* Command Queue Empty */
                priv->bCmdRunning = false;
@@ -154,27 +154,27 @@ static int s_bCommandComplete(struct vnt_private *priv)
 
        switch (priv->command) {
        case WLAN_CMD_INIT_MAC80211:
-               priv->eCommandState = WLAN_CMD_INIT_MAC80211_START;
+               priv->command_state = WLAN_CMD_INIT_MAC80211_START;
                break;
 
        case WLAN_CMD_TBTT_WAKEUP:
-               priv->eCommandState = WLAN_CMD_TBTT_WAKEUP_START;
+               priv->command_state = WLAN_CMD_TBTT_WAKEUP_START;
                break;
 
        case WLAN_CMD_BECON_SEND:
-               priv->eCommandState = WLAN_CMD_BECON_SEND_START;
+               priv->command_state = WLAN_CMD_BECON_SEND_START;
                break;
 
        case WLAN_CMD_SETPOWER:
-               priv->eCommandState = WLAN_CMD_SETPOWER_START;
+               priv->command_state = WLAN_CMD_SETPOWER_START;
                break;
 
        case WLAN_CMD_CHANGE_ANTENNA:
-               priv->eCommandState = WLAN_CMD_CHANGE_ANTENNA_START;
+               priv->command_state = WLAN_CMD_CHANGE_ANTENNA_START;
                break;
 
        case WLAN_CMD_11H_CHSW:
-               priv->eCommandState = WLAN_CMD_11H_CHSW_START;
+               priv->command_state = WLAN_CMD_11H_CHSW_START;
                break;
 
        default:
@@ -209,7 +209,7 @@ void vResetCommandTimer(struct vnt_private *priv)
        priv->cbFreeCmdQueue = CMD_Q_SIZE;
        priv->uCmdDequeueIdx = 0;
        priv->uCmdEnqueueIdx = 0;
-       priv->eCommandState = WLAN_CMD_IDLE;
+       priv->command_state = WLAN_CMD_IDLE;
        priv->bCmdRunning = false;
        priv->bCmdClear = false;
 }
index 1d0201a49c69a951d8d69fd61bb4b5b227e4b9f2..283df613baad901a44fd140a934e173f1d12fb1a 100644 (file)
@@ -60,16 +60,16 @@ typedef struct tagCMD_ITEM {
        enum vnt_cmd cmd;
 } CMD_ITEM, *PCMD_ITEM;
 
-// Command state
-typedef enum tagCMD_STATE {
-    WLAN_CMD_INIT_MAC80211_START,
-    WLAN_CMD_SETPOWER_START,
-    WLAN_CMD_TBTT_WAKEUP_START,
-    WLAN_CMD_BECON_SEND_START,
-    WLAN_CMD_CHANGE_ANTENNA_START,
-    WLAN_CMD_11H_CHSW_START,
-    WLAN_CMD_IDLE
-} CMD_STATE, *PCMD_STATE;
+/* Command state */
+enum vnt_cmd_state {
+       WLAN_CMD_INIT_MAC80211_START,
+       WLAN_CMD_SETPOWER_START,
+       WLAN_CMD_TBTT_WAKEUP_START,
+       WLAN_CMD_BECON_SEND_START,
+       WLAN_CMD_CHANGE_ANTENNA_START,
+       WLAN_CMD_11H_CHSW_START,
+       WLAN_CMD_IDLE
+};
 
 struct vnt_private;