summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath6kl/hif-ops.h
diff options
context:
space:
mode:
authorKalle Valo <kvalo@qca.qualcomm.com>2011-10-27 18:48:14 +0300
committerKalle Valo <kvalo@qca.qualcomm.com>2011-11-11 12:58:55 +0200
commitb2e756989e9744d94f7cbae47586858c3efc8430 (patch)
tree1b067f2f6249bb8f6cb07c2fddd26825e76fd577 /drivers/net/wireless/ath/ath6kl/hif-ops.h
parentc89c591d19ace9904cfd658f54d7d72aa54b3371 (diff)
downloadblackbird-op-linux-b2e756989e9744d94f7cbae47586858c3efc8430.tar.gz
blackbird-op-linux-b2e756989e9744d94f7cbae47586858c3efc8430.zip
ath6kl: move power control from sdio to core
In preparation for cutting down power from the chip on the fly. Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl/hif-ops.h')
-rw-r--r--drivers/net/wireless/ath/ath6kl/hif-ops.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/hif-ops.h b/drivers/net/wireless/ath/ath6kl/hif-ops.h
index 95e73030a2c6..34adc77ffb30 100644
--- a/drivers/net/wireless/ath/ath6kl/hif-ops.h
+++ b/drivers/net/wireless/ath/ath6kl/hif-ops.h
@@ -96,4 +96,19 @@ static inline int ath6kl_hif_resume(struct ath6kl *ar)
return ar->hif_ops->resume(ar);
}
+
+static inline int ath6kl_hif_power_on(struct ath6kl *ar)
+{
+ ath6kl_dbg(ATH6KL_DBG_HIF, "hif power on\n");
+
+ return ar->hif_ops->power_on(ar);
+}
+
+static inline int ath6kl_hif_power_off(struct ath6kl *ar)
+{
+ ath6kl_dbg(ATH6KL_DBG_HIF, "hif power off\n");
+
+ return ar->hif_ops->power_off(ar);
+}
+
#endif
OpenPOWER on IntegriCloud