diff options
author | Vasanthakumar Thiagarajan <vthiagar@qca.qualcomm.com> | 2011-07-16 10:59:05 -0400 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2011-08-09 12:45:18 -0400 |
commit | f74a7361b8affcd76ffe1e2baa5748af4d63bcea (patch) | |
tree | c0d5cb1246f8e0350fb1e6890307fb464892516e /drivers/net/wireless/ath/ath6kl/sdio.c | |
parent | bdcd81707973cf8aa9305337166f8ee842a050d4 (diff) |
ath6kl: cleanup callbacks for different scatter gather method
Define a hook in ath6kl_hif_ops for hif scatter gather mechanism.
When virtual scatter gather is used, call the respective 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/sdio.c')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/sdio.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/sdio.c b/drivers/net/wireless/ath/ath6kl/sdio.c index b38732aaf41a..d217f1c642b3 100644 --- a/drivers/net/wireless/ath/ath6kl/sdio.c +++ b/drivers/net/wireless/ath/ath6kl/sdio.c | |||
@@ -271,9 +271,9 @@ static int ath6kl_sdio_scat_rw(struct ath6kl_sdio *ar_sdio, | |||
271 | } | 271 | } |
272 | 272 | ||
273 | 273 | ||
274 | /* callback to issue a read-write scatter request */ | 274 | /* scatter gather read write request */ |
275 | static int ath6kl_sdio_async_rw_scatter(struct ath6kl *ar, | 275 | static int ath6kl_sdio_async_rw_scatter(struct ath6kl *ar, |
276 | struct hif_scatter_req *scat_req) | 276 | struct hif_scatter_req *scat_req) |
277 | { | 277 | { |
278 | struct ath6kl_sdio *ar_sdio = ath6kl_sdio_priv(ar); | 278 | struct ath6kl_sdio *ar_sdio = ath6kl_sdio_priv(ar); |
279 | struct hif_scatter_req_priv *req_priv = scat_req->req_priv; | 279 | struct hif_scatter_req_priv *req_priv = scat_req->req_priv; |
@@ -379,8 +379,6 @@ static int ath6kl_sdio_setup_scat_resource(struct ath6kl_sdio *ar_sdio, | |||
379 | hif_scatter_req_add(ar_sdio->ar, s_req); | 379 | hif_scatter_req_add(ar_sdio->ar, s_req); |
380 | } | 380 | } |
381 | 381 | ||
382 | /* set scatter function pointers */ | ||
383 | pinfo->rw_scat_func = ath6kl_sdio_async_rw_scatter; | ||
384 | pinfo->max_scat_entries = MAX_SCATTER_ENTRIES_PER_REQ; | 382 | pinfo->max_scat_entries = MAX_SCATTER_ENTRIES_PER_REQ; |
385 | pinfo->max_xfer_szper_scatreq = MAX_SCATTER_REQ_TRANSFER_SIZE; | 383 | pinfo->max_xfer_szper_scatreq = MAX_SCATTER_REQ_TRANSFER_SIZE; |
386 | 384 | ||
@@ -671,6 +669,7 @@ static const struct ath6kl_hif_ops ath6kl_sdio_ops = { | |||
671 | .scatter_req_get = ath6kl_sdio_scatter_req_get, | 669 | .scatter_req_get = ath6kl_sdio_scatter_req_get, |
672 | .scatter_req_add = ath6kl_sdio_scatter_req_add, | 670 | .scatter_req_add = ath6kl_sdio_scatter_req_add, |
673 | .enable_scatter = ath6kl_sdio_enable_scatter, | 671 | .enable_scatter = ath6kl_sdio_enable_scatter, |
672 | .scat_req_rw = ath6kl_sdio_async_rw_scatter, | ||
674 | .cleanup_scatter = ath6kl_sdio_cleanup_scatter, | 673 | .cleanup_scatter = ath6kl_sdio_cleanup_scatter, |
675 | }; | 674 | }; |
676 | 675 | ||