diff options
author | Malcolm Priestley <tvboxspy@gmail.com> | 2015-11-22 09:07:20 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-02-07 19:02:03 -0800 |
commit | c30ab9303f8c6e92d48afe1740a8483b431c195f (patch) | |
tree | 0f6dbc12ce83c3ae85e70a44bf1b436746b162e5 /drivers/staging/vt6655/power.c | |
parent | 16d56de650b6ef0756195f4beb449e250ba97cb5 (diff) |
staging: vt6655: rf.c/h Replace DeviceContext with vnt_private
Removing void and including device.h for power.h
Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/vt6655/power.c')
-rw-r--r-- | drivers/staging/vt6655/power.c | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/staging/vt6655/power.c b/drivers/staging/vt6655/power.c index e58afbd8c89e..ad44746d4ff4 100644 --- a/drivers/staging/vt6655/power.c +++ b/drivers/staging/vt6655/power.c @@ -64,11 +64,10 @@ void PSvEnablePowerSaving( - void *hDeviceContext, + struct vnt_private *priv, unsigned short wListenInterval ) { - struct vnt_private *priv = hDeviceContext; u16 wAID = priv->current_aid | BIT(14) | BIT(15); /* set period of power up before TBTT */ @@ -117,11 +116,9 @@ PSvEnablePowerSaving( void PSvDisablePowerSaving( - void *hDeviceContext + struct vnt_private *priv ) { - struct vnt_private *priv = hDeviceContext; - /* disable power saving hw function */ MACbPSWakeup(priv->PortOffset); /* clear AutoSleep */ @@ -149,10 +146,9 @@ PSvDisablePowerSaving( bool PSbIsNextTBTTWakeUp( - void *hDeviceContext + struct vnt_private *priv ) { - struct vnt_private *priv = hDeviceContext; struct ieee80211_hw *hw = priv->hw; struct ieee80211_conf *conf = &hw->conf; bool bWakeUp = false; |