From: Sujith Manoharan Date: Sun, 28 Apr 2013 21:01:23 +0530 Subject: [ath9k-devel] [PATCH 05/20] ath10k: Remove "htc" inside HTT struct In-Reply-To: <1367163098-22787-1-git-send-email-sujith@msujith.org> References: <1367163098-22787-1-git-send-email-sujith@msujith.org> Message-ID: <1367163098-22787-5-git-send-email-sujith@msujith.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: ath9k-devel@lists.ath9k.org From: Sujith Manoharan Signed-off-by: Sujith Manoharan --- drivers/net/wireless/ath/ath10k/core.c | 2 +- drivers/net/wireless/ath/ath10k/htt.c | 5 ++--- drivers/net/wireless/ath/ath10k/htt.h | 4 +--- drivers/net/wireless/ath/ath10k/htt_tx.c | 8 ++++---- 4 files changed, 8 insertions(+), 11 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c index ec652b9..fa9ba4e 100644 --- a/drivers/net/wireless/ath/ath10k/core.c +++ b/drivers/net/wireless/ath/ath10k/core.c @@ -555,7 +555,7 @@ int ath10k_core_register(struct ath10k *ar) if (status) goto err_wmi_detach; - ar->htt = ath10k_htt_attach(ar, ar->htc); + ar->htt = ath10k_htt_attach(ar); if (!ar->htt) { status = -ENOMEM; goto err_wmi_detach; diff --git a/drivers/net/wireless/ath/ath10k/htt.c b/drivers/net/wireless/ath/ath10k/htt.c index 036e2b8..c253db8 100644 --- a/drivers/net/wireless/ath/ath10k/htt.c +++ b/drivers/net/wireless/ath/ath10k/htt.c @@ -57,7 +57,7 @@ static int ath10k_htt_htc_attach(struct ath10k_htt *htt) /* connect to control service */ conn_req.service_id = ATH10K_HTC_SVC_ID_HTT_DATA_MSG; - status = ath10k_htc_connect_service(htt->htc, &conn_req, &conn_resp); + status = ath10k_htc_connect_service(htt->ar->htc, &conn_req, &conn_resp); if (status) return status; @@ -67,7 +67,7 @@ static int ath10k_htt_htc_attach(struct ath10k_htt *htt) return 0; } -struct ath10k_htt *ath10k_htt_attach(struct ath10k *ar, struct ath10k_htc *htc) +struct ath10k_htt *ath10k_htt_attach(struct ath10k *ar) { struct ath10k_htt *htt; @@ -76,7 +76,6 @@ struct ath10k_htt *ath10k_htt_attach(struct ath10k *ar, struct ath10k_htc *htc) return NULL; htt->ar = ar; - htt->htc = htc; htt->cfg.max_throughput_mbps = 800; /* diff --git a/drivers/net/wireless/ath/ath10k/htt.h b/drivers/net/wireless/ath/ath10k/htt.h index 2f353d5..58f0d03 100644 --- a/drivers/net/wireless/ath/ath10k/htt.h +++ b/drivers/net/wireless/ath/ath10k/htt.h @@ -1103,8 +1103,6 @@ struct htt_rx_info { struct ath10k_htt { struct ath10k *ar; - struct ath10k_htc *htc; - enum ath10k_htc_ep_id eid; struct { @@ -1259,7 +1257,7 @@ struct htt_rx_desc { /* FIXME: add htt_tx_desc_init() */ -struct ath10k_htt *ath10k_htt_attach(struct ath10k *ar, struct ath10k_htc *htc); +struct ath10k_htt *ath10k_htt_attach(struct ath10k *ar); int ath10k_htt_attach_target(struct ath10k_htt *htt); void ath10k_htt_detach(struct ath10k_htt *htt); diff --git a/drivers/net/wireless/ath/ath10k/htt_tx.c b/drivers/net/wireless/ath/ath10k/htt_tx.c index 677f527..62575b7 100644 --- a/drivers/net/wireless/ath/ath10k/htt_tx.c +++ b/drivers/net/wireless/ath/ath10k/htt_tx.c @@ -130,7 +130,7 @@ int ath10k_htt_h2t_ver_req_msg(struct ath10k_htt *htt) ATH10K_SKB_CB(skb)->htt.is_conf = true; - ret = ath10k_htc_send(htt->htc, htt->eid, skb); + ret = ath10k_htc_send(htt->ar->htc, htt->eid, skb); if (ret) { dev_kfree_skb_any(skb); return ret; @@ -217,7 +217,7 @@ int ath10k_htt_send_rx_ring_cfg_ll(struct ath10k_htt *htt) ATH10K_SKB_CB(skb)->htt.is_conf = true; - ret = ath10k_htc_send(htt->htc, htt->eid, skb); + ret = ath10k_htc_send(htt->ar->htc, htt->eid, skb); if (ret) { dev_kfree_skb_any(skb); return ret; @@ -277,7 +277,7 @@ int ath10k_htt_mgmt_tx(struct ath10k_htt *htt, struct sk_buff *msdu) skb_cb->htt.refcount = 2; skb_cb->htt.msdu = msdu; - res = ath10k_htc_send(htt->htc, htt->eid, txdesc); + res = ath10k_htc_send(htt->ar->htc, htt->eid, txdesc); if (res) goto err; @@ -412,7 +412,7 @@ int ath10k_htt_tx(struct ath10k_htt *htt, struct sk_buff *msdu) skb_cb->htt.txfrag = txfrag; skb_cb->htt.msdu = msdu; - res = ath10k_htc_send(htt->htc, htt->eid, txdesc); + res = ath10k_htc_send(htt->ar->htc, htt->eid, txdesc); if (res) goto err; -- 1.8.2.2