diff options
author | Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> | 2011-07-18 04:53:26 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-08-09 12:45:20 -0400 |
commit | df45f7f92735210ea19a8a358a304ccfd01c1428 (patch) | |
tree | 6150ec2c4a3dde34f97794eaf259baea0efe9602 /drivers/net/wireless/ath/ath6kl | |
parent | 23b7840a1b1327fbcc2599e33f50b26d263d5328 (diff) |
ath6kl: Remove callback msg_pending() and used the function directly
Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/htc.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/htc.h | 2 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/htc_hif.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/htc_hif.h | 2 |
4 files changed, 6 insertions, 7 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/htc.c b/drivers/net/wireless/ath/ath6kl/htc.c index a359332b87fc..052dc1989c13 100644 --- a/drivers/net/wireless/ath/ath6kl/htc.c +++ b/drivers/net/wireless/ath/ath6kl/htc.c | |||
@@ -1723,9 +1723,8 @@ static int htc_fetch_rxpkts(struct htc_target *target, | |||
1723 | return status; | 1723 | return status; |
1724 | } | 1724 | } |
1725 | 1725 | ||
1726 | static int htc_rxmsg_pending_handler(struct htc_target *target, | 1726 | int htc_rxmsg_pending_handler(struct htc_target *target, u32 msg_look_ahead[], |
1727 | u32 msg_look_ahead[], | 1727 | int *num_pkts) |
1728 | int *num_pkts) | ||
1729 | { | 1728 | { |
1730 | struct htc_packet *packets, *tmp_pkt; | 1729 | struct htc_packet *packets, *tmp_pkt; |
1731 | struct htc_endpoint *endpoint; | 1730 | struct htc_endpoint *endpoint; |
@@ -2388,7 +2387,6 @@ void *htc_create(struct ath6kl *ar) | |||
2388 | 2387 | ||
2389 | target->dev->ar = ar; | 2388 | target->dev->ar = ar; |
2390 | target->dev->htc_cnxt = target; | 2389 | target->dev->htc_cnxt = target; |
2391 | target->dev->msg_pending = htc_rxmsg_pending_handler; | ||
2392 | target->ep_waiting = ENDPOINT_MAX; | 2390 | target->ep_waiting = ENDPOINT_MAX; |
2393 | 2391 | ||
2394 | reset_ep_state(target); | 2392 | reset_ep_state(target); |
diff --git a/drivers/net/wireless/ath/ath6kl/htc.h b/drivers/net/wireless/ath/ath6kl/htc.h index ff0ed6fe7ee8..fba226ebcbfb 100644 --- a/drivers/net/wireless/ath/ath6kl/htc.h +++ b/drivers/net/wireless/ath/ath6kl/htc.h | |||
@@ -549,6 +549,8 @@ void htc_indicate_activity_change(struct htc_target *target, | |||
549 | enum htc_endpoint_id endpoint, bool active); | 549 | enum htc_endpoint_id endpoint, bool active); |
550 | int htc_get_rxbuf_num(struct htc_target *target, enum htc_endpoint_id endpoint); | 550 | int htc_get_rxbuf_num(struct htc_target *target, enum htc_endpoint_id endpoint); |
551 | int htc_add_rxbuf_multiple(struct htc_target *target, struct list_head *pktq); | 551 | int htc_add_rxbuf_multiple(struct htc_target *target, struct list_head *pktq); |
552 | int htc_rxmsg_pending_handler(struct htc_target *target, u32 msg_look_ahead[], | ||
553 | int *n_pkts); | ||
552 | 554 | ||
553 | static inline void set_htc_pkt_info(struct htc_packet *packet, void *context, | 555 | static inline void set_htc_pkt_info(struct htc_packet *packet, void *context, |
554 | u8 *buf, unsigned int len, | 556 | u8 *buf, unsigned int len, |
diff --git a/drivers/net/wireless/ath/ath6kl/htc_hif.c b/drivers/net/wireless/ath/ath6kl/htc_hif.c index 043f85fc6dbb..386bc2874bb5 100644 --- a/drivers/net/wireless/ath/ath6kl/htc_hif.c +++ b/drivers/net/wireless/ath/ath6kl/htc_hif.c | |||
@@ -416,7 +416,8 @@ static int proc_pending_irqs(struct ath6kl_device *dev, bool *done) | |||
416 | * improve performance by reducing context switching when | 416 | * improve performance by reducing context switching when |
417 | * we rapidly pull packets. | 417 | * we rapidly pull packets. |
418 | */ | 418 | */ |
419 | status = dev->msg_pending(dev->htc_cnxt, &lk_ahd, &fetched); | 419 | status = htc_rxmsg_pending_handler(dev->htc_cnxt, |
420 | &lk_ahd, &fetched); | ||
420 | if (status) | 421 | if (status) |
421 | goto out; | 422 | goto out; |
422 | 423 | ||
diff --git a/drivers/net/wireless/ath/ath6kl/htc_hif.h b/drivers/net/wireless/ath/ath6kl/htc_hif.h index 5e65f1e28d16..8a8dfddcce8a 100644 --- a/drivers/net/wireless/ath/ath6kl/htc_hif.h +++ b/drivers/net/wireless/ath/ath6kl/htc_hif.h | |||
@@ -82,8 +82,6 @@ struct ath6kl_device { | |||
82 | u32 block_sz; | 82 | u32 block_sz; |
83 | u32 block_mask; | 83 | u32 block_mask; |
84 | struct htc_target *htc_cnxt; | 84 | struct htc_target *htc_cnxt; |
85 | int (*msg_pending) (struct htc_target *target, u32 lk_ahds[], | ||
86 | int *npkts_fetched); | ||
87 | struct hif_dev_scat_sup_info hif_scat_info; | 85 | struct hif_dev_scat_sup_info hif_scat_info; |
88 | int max_rx_bndl_sz; | 86 | int max_rx_bndl_sz; |
89 | int max_tx_bndl_sz; | 87 | int max_tx_bndl_sz; |