Commit 94cd95c2 authored by Oleksij Rempel's avatar Oleksij Rempel Committed by John W. Linville

ath9k_htc: add ath_ps_ops bindings

Signed-off-by: default avatarOleksij Rempel <linux@rempel-privat.de>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 525d0945
...@@ -53,6 +53,21 @@ static const struct ieee80211_tpt_blink ath9k_htc_tpt_blink[] = { ...@@ -53,6 +53,21 @@ static const struct ieee80211_tpt_blink ath9k_htc_tpt_blink[] = {
}; };
#endif #endif
void ath9k_htc_op_ps_wakeup(struct ath_common *common)
{
ath9k_htc_ps_wakeup((struct ath9k_htc_priv *) common->priv);
}
void ath9k_htc_op_ps_restore(struct ath_common *common)
{
ath9k_htc_ps_restore((struct ath9k_htc_priv *) common->priv);
}
struct ath_ps_ops ath9k_htc_ps_ops = {
.wakeup = ath9k_htc_op_ps_wakeup,
.restore = ath9k_htc_op_ps_restore,
};
static int ath9k_htc_wait_for_target(struct ath9k_htc_priv *priv) static int ath9k_htc_wait_for_target(struct ath9k_htc_priv *priv)
{ {
int time_left; int time_left;
...@@ -478,6 +493,7 @@ static int ath9k_init_priv(struct ath9k_htc_priv *priv, ...@@ -478,6 +493,7 @@ static int ath9k_init_priv(struct ath9k_htc_priv *priv,
common = ath9k_hw_common(ah); common = ath9k_hw_common(ah);
common->ops = &ah->reg_ops; common->ops = &ah->reg_ops;
common->ps_ops = &ath9k_htc_ps_ops;
common->bus_ops = &ath9k_usb_bus_ops; common->bus_ops = &ath9k_usb_bus_ops;
common->ah = ah; common->ah = ah;
common->hw = priv->hw; common->hw = priv->hw;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment