diff options
author | Holger Schurig <hs4233@mail.mn-solutions.de> | 2007-05-25 12:17:06 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-06-11 14:28:39 -0400 |
commit | 208fdd2f447899164bd139452c291b155e53cee9 (patch) | |
tree | c65f6dd5ad6846ea7179ece65594033a8dca9731 /drivers/net/wireless/libertas/tx.c | |
parent | 0583e8ef149700ede2aa181509e217c39e565f28 (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/tx.c')
-rw-r--r-- | drivers/net/wireless/libertas/tx.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/drivers/net/wireless/libertas/tx.c b/drivers/net/wireless/libertas/tx.c index e61729f0645a..1993e8e79c45 100644 --- a/drivers/net/wireless/libertas/tx.c +++ b/drivers/net/wireless/libertas/tx.c | |||
@@ -5,7 +5,6 @@ | |||
5 | 5 | ||
6 | #include "hostcmd.h" | 6 | #include "hostcmd.h" |
7 | #include "radiotap.h" | 7 | #include "radiotap.h" |
8 | #include "sbi.h" | ||
9 | #include "decl.h" | 8 | #include "decl.h" |
10 | #include "defs.h" | 9 | #include "defs.h" |
11 | #include "dev.h" | 10 | #include "dev.h" |
@@ -132,13 +131,13 @@ static int SendSinglePacket(wlan_private * priv, struct sk_buff *skb) | |||
132 | 131 | ||
133 | lbs_dbg_hex("Tx Data", (u8 *) p802x_hdr, plocaltxpd->tx_packet_length); | 132 | lbs_dbg_hex("Tx Data", (u8 *) p802x_hdr, plocaltxpd->tx_packet_length); |
134 | memcpy(ptr, p802x_hdr, plocaltxpd->tx_packet_length); | 133 | memcpy(ptr, p802x_hdr, plocaltxpd->tx_packet_length); |
135 | ret = libertas_sbi_host_to_card(priv, MVMS_DAT, | 134 | ret = priv->hw_host_to_card(priv, MVMS_DAT, |
136 | priv->adapter->tmptxbuf, | 135 | priv->adapter->tmptxbuf, |
137 | plocaltxpd->tx_packet_length + | 136 | plocaltxpd->tx_packet_length + |
138 | sizeof(struct txpd)); | 137 | sizeof(struct txpd)); |
139 | 138 | ||
140 | if (ret) { | 139 | if (ret) { |
141 | lbs_deb_tx("tx err: libertas_sbi_host_to_card returned 0x%X\n", ret); | 140 | lbs_deb_tx("tx err: hw_host_to_card returned 0x%X\n", ret); |
142 | goto done; | 141 | goto done; |
143 | } | 142 | } |
144 | 143 | ||