aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/cmd.c
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2007-05-25 12:17:06 -0400
committerJohn W. Linville <linville@tuxdriver.com>2007-06-11 14:28:39 -0400
commit208fdd2f447899164bd139452c291b155e53cee9 (patch)
treec65f6dd5ad6846ea7179ece65594033a8dca9731 /drivers/net/wireless/libertas/cmd.c
parent0583e8ef149700ede2aa181509e217c39e565f28 (diff)
[PATCH] libertas: indirect all hardware access via hw_XXXX functions
This functions makes all libertas_sbi_XXX functions static to the if_usb.c file and renames them to if_usb_XXXX(). The get called from other places of the source code via priv->hw_XXXX(). Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/libertas/cmd.c')
-rw-r--r--drivers/net/wireless/libertas/cmd.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/libertas/cmd.c b/drivers/net/wireless/libertas/cmd.c
index c1d9902cac5d..899b115f4c14 100644
--- a/drivers/net/wireless/libertas/cmd.c
+++ b/drivers/net/wireless/libertas/cmd.c
@@ -6,7 +6,6 @@
6#include <net/iw_handler.h> 6#include <net/iw_handler.h>
7#include "host.h" 7#include "host.h"
8#include "hostcmd.h" 8#include "hostcmd.h"
9#include "sbi.h"
10#include "decl.h" 9#include "decl.h"
11#include "defs.h" 10#include "defs.h"
12#include "dev.h" 11#include "dev.h"
@@ -1014,7 +1013,7 @@ static int DownloadcommandToStation(wlan_private * priv,
1014 cmdnode->cmdwaitqwoken = 0; 1013 cmdnode->cmdwaitqwoken = 0;
1015 cmdsize = cpu_to_le16(cmdsize); 1014 cmdsize = cpu_to_le16(cmdsize);
1016 1015
1017 ret = libertas_sbi_host_to_card(priv, MVMS_CMD, (u8 *) cmdptr, cmdsize); 1016 ret = priv->hw_host_to_card(priv, MVMS_CMD, (u8 *) cmdptr, cmdsize);
1018 1017
1019 if (ret != 0) { 1018 if (ret != 0) {
1020 lbs_deb_cmd("DNLD_CMD: Host to Card failed\n"); 1019 lbs_deb_cmd("DNLD_CMD: Host to Card failed\n");
@@ -1841,7 +1840,7 @@ static int sendconfirmsleep(wlan_private * priv, u8 * cmdptr, u16 size)
1841 1840
1842 lbs_dbg_hex("SEND_SLEEPC_CMD: Sleep confirm command", cmdptr, size); 1841 lbs_dbg_hex("SEND_SLEEPC_CMD: Sleep confirm command", cmdptr, size);
1843 1842
1844 ret = libertas_sbi_host_to_card(priv, MVMS_CMD, cmdptr, size); 1843 ret = priv->hw_host_to_card(priv, MVMS_CMD, cmdptr, size);
1845 priv->wlan_dev.dnld_sent = DNLD_RES_RECEIVED; 1844 priv->wlan_dev.dnld_sent = DNLD_RES_RECEIVED;
1846 1845
1847 spin_lock_irqsave(&adapter->driver_lock, flags); 1846 spin_lock_irqsave(&adapter->driver_lock, flags);