Commit 53094af1 authored by Maxim Mikityanskiy's avatar Maxim Mikityanskiy Committed by Greg Kroah-Hartman

staging: rtl8187se: Removed empty stub read_acadapter_file()

Removed empty read_acadapter_file() and priv->PowerProfile that never
changes its value
Signed-off-by: default avatarMaxim Mikityanskiy <maxtram95@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 861437d2
...@@ -611,7 +611,6 @@ typedef struct r8180_priv ...@@ -611,7 +611,6 @@ typedef struct r8180_priv
struct work_struct watch_dog_wq; struct work_struct watch_dog_wq;
short ack_tx_to_ieee; short ack_tx_to_ieee;
u8 PowerProfile;
u8 dma_poll_stop_mask; u8 dma_poll_stop_mask;
//u8 RegThreeWireMode; //u8 RegThreeWireMode;
......
...@@ -2480,7 +2480,6 @@ short rtl8180_init(struct net_device *dev) ...@@ -2480,7 +2480,6 @@ short rtl8180_init(struct net_device *dev)
priv->NumTxOkTotal = 0; priv->NumTxOkTotal = 0;
priv->NumTxUnicast = 0; priv->NumTxUnicast = 0;
priv->keepAliveLevel = DEFAULT_KEEP_ALIVE_LEVEL; priv->keepAliveLevel = DEFAULT_KEEP_ALIVE_LEVEL;
priv->PowerProfile = POWER_PROFILE_AC;
priv->CurrRetryCnt = 0; priv->CurrRetryCnt = 0;
priv->LastRetryCnt = 0; priv->LastRetryCnt = 0;
priv->LastTxokCnt = 0; priv->LastTxokCnt = 0;
...@@ -2927,8 +2926,6 @@ static void MgntLinkKeepAlive(struct r8180_priv *priv) ...@@ -2927,8 +2926,6 @@ static void MgntLinkKeepAlive(struct r8180_priv *priv)
} }
} }
static u8 read_acadapter_file(char *filename);
void rtl8180_watch_dog(struct net_device *dev) void rtl8180_watch_dog(struct net_device *dev)
{ {
struct r8180_priv *priv = ieee80211_priv(dev); struct r8180_priv *priv = ieee80211_priv(dev);
...@@ -2961,12 +2958,7 @@ void rtl8180_watch_dog(struct net_device *dev) ...@@ -2961,12 +2958,7 @@ void rtl8180_watch_dog(struct net_device *dev)
MgntLinkKeepAlive(priv); MgntLinkKeepAlive(priv);
/* YJ,add,080828,for LPS */ /* YJ,add,080828,for LPS */
if (priv->PowerProfile == POWER_PROFILE_BATTERY) LeisurePSLeave(priv);
priv->bLeisurePs = true;
else if (priv->PowerProfile == POWER_PROFILE_AC) {
LeisurePSLeave(priv);
priv->bLeisurePs = false;
}
if (priv->ieee80211->state == IEEE80211_LINKED) { if (priv->ieee80211->state == IEEE80211_LINKED) {
priv->link_detect.NumRxOkInPeriod = priv->ieee80211->NumRxDataInPeriod; priv->link_detect.NumRxOkInPeriod = priv->ieee80211->NumRxDataInPeriod;
...@@ -3735,9 +3727,6 @@ void GPIOChangeRFWorkItemCallBack(struct work_struct *work) ...@@ -3735,9 +3727,6 @@ void GPIOChangeRFWorkItemCallBack(struct work_struct *work)
static char *envp[] = {"HOME=/", "TERM=linux", "PATH=/usr/bin:/bin", NULL}; static char *envp[] = {"HOME=/", "TERM=linux", "PATH=/usr/bin:/bin", NULL};
static int readf_count = 0; static int readf_count = 0;
if (readf_count % 10 == 0)
priv->PowerProfile = read_acadapter_file("/proc/acpi/ac_adapter/AC0/state");
readf_count = (readf_count+1)%0xffff; readf_count = (readf_count+1)%0xffff;
/* We should turn off LED before polling FF51[4]. */ /* We should turn off LED before polling FF51[4]. */
...@@ -3782,10 +3771,5 @@ void GPIOChangeRFWorkItemCallBack(struct work_struct *work) ...@@ -3782,10 +3771,5 @@ void GPIOChangeRFWorkItemCallBack(struct work_struct *work)
} }
} }
static u8 read_acadapter_file(char *filename)
{
return 0;
}
module_init(rtl8180_pci_module_init); module_init(rtl8180_pci_module_init);
module_exit(rtl8180_pci_module_exit); module_exit(rtl8180_pci_module_exit);
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