staging: vt6656: Drop u8 pointer and rename bScheduleCommand.
authorMalcolm Priestley <tvboxspy@gmail.com>
Sun, 13 Jul 2014 09:42:50 +0000 (10:42 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 13 Jul 2014 19:22:34 +0000 (12:22 -0700)
Rename to vnt_schedule_command removing unused u8 pointer.

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

index 77bd9dde4887ffab621f31b9b2c44be44b9a4d2c..15841b8a846a8eb75b45d0ee6e5fcc72f9f032f9 100644 (file)
@@ -172,20 +172,18 @@ void INTnsProcessData(struct vnt_private *priv)
        if (int_data->isr0 != 0) {
                if (int_data->isr0 & ISR_BNTX &&
                                priv->op_mode == NL80211_IFTYPE_AP)
-                       bScheduleCommand(priv, WLAN_CMD_BECON_SEND, NULL);
+                       vnt_schedule_command(priv, WLAN_CMD_BECON_SEND);
 
                if (int_data->isr0 & ISR_TBTT) {
                        if (priv->hw->conf.flags & IEEE80211_CONF_PS)
-                               bScheduleCommand((void *) priv,
-                                               WLAN_CMD_TBTT_WAKEUP,
-                                               NULL);
+                               vnt_schedule_command(priv,
+                                                       WLAN_CMD_TBTT_WAKEUP);
 #if 0 /* TODO channel switch */
                        if (priv->bChannelSwitch) {
                                priv->byChannelSwitchCount--;
                                if (priv->byChannelSwitchCount == 0)
-                                       bScheduleCommand((void *) priv,
-                                                       WLAN_CMD_11H_CHSW,
-                                                       NULL);
+                                       vnt_schedule_command(priv,
+                                                       WLAN_CMD_11H_CHSW);
                        }
 #endif
                }
index d9b521063a84ba09b2b4526a3f171b8141e06758..ceef9ef3599ed79603f0e019eaf74908f2b1725a 100644 (file)
@@ -1137,7 +1137,7 @@ vt6656_probe(struct usb_interface *intf, const struct usb_device_id *id)
        MP_CLEAR_FLAG(priv, fMP_DISCONNECTED);
        vResetCommandTimer(priv);
 
-       bScheduleCommand(priv, WLAN_CMD_INIT_MAC80211, NULL);
+       vnt_schedule_command(priv, WLAN_CMD_INIT_MAC80211);
 
        return 0;
 
index 3dc6d071f012f02365f925f3db11a51022959a53..1f1ec049ace3408a4f668bda189b4fc65fbc2c65 100644 (file)
@@ -767,7 +767,7 @@ int vnt_tx_packet(struct vnt_private *priv, struct sk_buff *skb)
        if (priv->wCurrentRate != current_rate &&
                        !(priv->hw->conf.flags & IEEE80211_CONF_OFFCHANNEL)) {
                priv->wCurrentRate = current_rate;
-               bScheduleCommand(priv, WLAN_CMD_SETPOWER, NULL);
+               vnt_schedule_command(priv, WLAN_CMD_SETPOWER);
        }
 
        if (current_rate > RATE_11M)
index 864d5e59d362856baebd03156878ac334ec6b95b..b217efb1667aae46f2a7d9a752e31c43c3fe2ce0 100644 (file)
@@ -29,7 +29,7 @@
  *      s_MgrMakeProbeRequest - Make ProbeRequest packet
  *      CommandTimer - Timer function to handle command
  *     vnt_cmd_complete - Command Complete function
- *      bScheduleCommand - Push Command and wait Command Scheduler to do
+ *      vnt_schedule_command - Push Command and wait Command Scheduler to do
  *      vCommandTimer- Command call back functions
  *     vnt_cmd_timer_wait- Call back timer
  *      s_bClearBSSID_SCAN- Clear BSSID_SCAN cmd in CMD Queue
@@ -184,7 +184,7 @@ void vnt_run_command(struct work_struct *work)
        return;
 }
 
-int bScheduleCommand(struct vnt_private *priv, enum vnt_cmd command, u8 *item0)
+int vnt_schedule_command(struct vnt_private *priv, enum vnt_cmd command)
 {
 
        if (priv->free_cmd_queue == 0)
index 783d6c9a6ccba2e3393a22159cb3816030aef19f..3248c95a94cca18ace09816445dbb70100a8956a 100644 (file)
@@ -61,7 +61,7 @@ struct vnt_private;
 
 void vResetCommandTimer(struct vnt_private *);
 
-int bScheduleCommand(struct vnt_private *, enum vnt_cmd, u8 *);
+int vnt_schedule_command(struct vnt_private *, enum vnt_cmd);
 
 void vnt_run_command(struct work_struct *work);