aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/libertas/tx.c
diff options
context:
space:
mode:
authorHolger Schurig <hs4233@mail.mn-solutions.de>2007-11-23 09:43:44 -0500
committerDavid S. Miller <davem@davemloft.net>2008-01-28 18:04:54 -0500
commit69f9032d9dfeb763b467fdbe8cf5938f5457083a (patch)
tree613598938e17e1a7514e0da3817f3cfebbe346a9 /drivers/net/wireless/libertas/tx.c
parent96287ac4f7b387acbe17e24b5e1bcbf3bc0e75cd (diff)
libertas: remove arbitrary typedefs
New typedefs are usually frowned upon. This patch changes libertas_adapter -> struct libertas_adapter libertas_priv -> struct libertas_priv While passing, make everything checkpatch.pl-clean that gets touches. Signed-off-by: Holger Schurig <hs4233@mail.mn-solutions.de> Acked-by: Dan Williams <dcbw@redhat.com> 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.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/wireless/libertas/tx.c b/drivers/net/wireless/libertas/tx.c
index 267274b804c8..b423ce1ff42b 100644
--- a/drivers/net/wireless/libertas/tx.c
+++ b/drivers/net/wireless/libertas/tx.c
@@ -52,11 +52,11 @@ static u32 convert_radiotap_rate_to_mv(u8 rate)
52 * @brief This function processes a single packet and sends 52 * @brief This function processes a single packet and sends
53 * to IF layer 53 * to IF layer
54 * 54 *
55 * @param priv A pointer to lbs_private structure 55 * @param priv A pointer to struct lbs_private structure
56 * @param skb A pointer to skb which includes TX packet 56 * @param skb A pointer to skb which includes TX packet
57 * @return 0 or -1 57 * @return 0 or -1
58 */ 58 */
59static int SendSinglePacket(lbs_private *priv, struct sk_buff *skb) 59static int SendSinglePacket(struct lbs_private *priv, struct sk_buff *skb)
60{ 60{
61 int ret = 0; 61 int ret = 0;
62 struct txpd localtxpd; 62 struct txpd localtxpd;
@@ -164,9 +164,9 @@ done:
164} 164}
165 165
166 166
167void lbs_tx_runqueue(lbs_private *priv) 167void lbs_tx_runqueue(struct lbs_private *priv)
168{ 168{
169 lbs_adapter *adapter = priv->adapter; 169 struct lbs_adapter *adapter = priv->adapter;
170 int i; 170 int i;
171 171
172 spin_lock(&adapter->txqueue_lock); 172 spin_lock(&adapter->txqueue_lock);
@@ -180,9 +180,9 @@ void lbs_tx_runqueue(lbs_private *priv)
180 spin_unlock(&adapter->txqueue_lock); 180 spin_unlock(&adapter->txqueue_lock);
181} 181}
182 182
183static void lbs_tx_queue(lbs_private *priv, struct sk_buff *skb) 183static void lbs_tx_queue(struct lbs_private *priv, struct sk_buff *skb)
184{ 184{
185 lbs_adapter *adapter = priv->adapter; 185 struct lbs_adapter *adapter = priv->adapter;
186 186
187 spin_lock(&adapter->txqueue_lock); 187 spin_lock(&adapter->txqueue_lock);
188 188
@@ -205,10 +205,10 @@ static void lbs_tx_queue(lbs_private *priv, struct sk_buff *skb)
205 * @brief This function checks the conditions and sends packet to IF 205 * @brief This function checks the conditions and sends packet to IF
206 * layer if everything is ok. 206 * layer if everything is ok.
207 * 207 *
208 * @param priv A pointer to lbs_private structure 208 * @param priv A pointer to struct lbs_private structure
209 * @return n/a 209 * @return n/a
210 */ 210 */
211int lbs_process_tx(lbs_private *priv, struct sk_buff *skb) 211int lbs_process_tx(struct lbs_private *priv, struct sk_buff *skb)
212{ 212{
213 int ret = -1; 213 int ret = -1;
214 214
@@ -239,14 +239,14 @@ done:
239 * @brief This function sends to the host the last transmitted packet, 239 * @brief This function sends to the host the last transmitted packet,
240 * filling the radiotap headers with transmission information. 240 * filling the radiotap headers with transmission information.
241 * 241 *
242 * @param priv A pointer to lbs_private structure 242 * @param priv A pointer to struct lbs_private structure
243 * @param status A 32 bit value containing transmission status. 243 * @param status A 32 bit value containing transmission status.
244 * 244 *
245 * @returns void 245 * @returns void
246 */ 246 */
247void lbs_send_tx_feedback(lbs_private *priv) 247void lbs_send_tx_feedback(struct lbs_private *priv)
248{ 248{
249 lbs_adapter *adapter = priv->adapter; 249 struct lbs_adapter *adapter = priv->adapter;
250 struct tx_radiotap_hdr *radiotap_hdr; 250 struct tx_radiotap_hdr *radiotap_hdr;
251 u32 status = adapter->eventcause; 251 u32 status = adapter->eventcause;
252 int txfail; 252 int txfail;