summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath10k/hif.h
diff options
context:
space:
mode:
authorKalle Valo <kvalo@codeaurora.org>2020-04-16 14:50:56 +0300
committerKalle Valo <kvalo@codeaurora.org>2020-04-21 15:03:54 +0300
commit557e171434eb9bb43dbe71361775ae21ae95d4ed (patch)
tree9874d8b2b50072fc9e5d4f194ccfb499a8ae00c8 /drivers/net/wireless/ath/ath10k/hif.h
parentd687275b268b09c350b24b1947d1bf3496f49137 (diff)
downloadlinux-557e171434eb9bb43dbe71361775ae21ae95d4ed.tar.xz
ath10k: rename ath10k_hif_swap_mailbox() to ath10k_hif_start_post()
Convert ath10k_hif_swap_mailbox() to a more generic op so that bus drivers can do more than just swap the mailbox, for example set power save settings like in the following sdio patch. No functional changes, compile tested only. Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Link: https://lore.kernel.org/r/1587037859-28873-2-git-send-email-kvalo@codeaurora.org
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/hif.h')
-rw-r--r--drivers/net/wireless/ath/ath10k/hif.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/ath10k/hif.h b/drivers/net/wireless/ath/ath10k/hif.h
index 0dd8973d0acf..2c5d61d98337 100644
--- a/drivers/net/wireless/ath/ath10k/hif.h
+++ b/drivers/net/wireless/ath/ath10k/hif.h
@@ -54,7 +54,7 @@ struct ath10k_hif_ops {
*/
void (*stop)(struct ath10k *ar);
- int (*swap_mailbox)(struct ath10k *ar);
+ int (*start_post)(struct ath10k *ar);
int (*get_htt_tx_complete)(struct ath10k *ar);
@@ -139,10 +139,10 @@ static inline void ath10k_hif_stop(struct ath10k *ar)
return ar->hif.ops->stop(ar);
}
-static inline int ath10k_hif_swap_mailbox(struct ath10k *ar)
+static inline int ath10k_hif_start_post(struct ath10k *ar)
{
- if (ar->hif.ops->swap_mailbox)
- return ar->hif.ops->swap_mailbox(ar);
+ if (ar->hif.ops->start_post)
+ return ar->hif.ops->start_post(ar);
return 0;
}