mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-06-23 08:34:20 +00:00
rtl8188eu: Remove configuration variables *ANDROID* and associated dead code
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
acda213bd2
commit
4c57c6047a
8 changed files with 12 additions and 172 deletions
|
@ -331,18 +331,12 @@ void rtw_yield_os(void)
|
|||
|
||||
#ifdef CONFIG_WAKELOCK
|
||||
static struct wake_lock rtw_suspend_lock;
|
||||
#elif defined(CONFIG_ANDROID_POWER)
|
||||
static android_suspend_lock_t rtw_suspend_lock ={
|
||||
.name = RTW_SUSPEND_LOCK_NAME
|
||||
};
|
||||
#endif
|
||||
|
||||
inline void rtw_suspend_lock_init(void)
|
||||
{
|
||||
#ifdef CONFIG_WAKELOCK
|
||||
wake_lock_init(&rtw_suspend_lock, WAKE_LOCK_SUSPEND, RTW_SUSPEND_LOCK_NAME);
|
||||
#elif defined(CONFIG_ANDROID_POWER)
|
||||
android_init_suspend_lock(&rtw_suspend_lock);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -350,8 +344,6 @@ inline void rtw_suspend_lock_uninit(void)
|
|||
{
|
||||
#ifdef CONFIG_WAKELOCK
|
||||
wake_lock_destroy(&rtw_suspend_lock);
|
||||
#elif defined(CONFIG_ANDROID_POWER)
|
||||
android_uninit_suspend_lock(&rtw_suspend_lock);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -359,11 +351,9 @@ inline void rtw_lock_suspend(void)
|
|||
{
|
||||
#ifdef CONFIG_WAKELOCK
|
||||
wake_lock(&rtw_suspend_lock);
|
||||
#elif defined(CONFIG_ANDROID_POWER)
|
||||
android_lock_suspend(&rtw_suspend_lock);
|
||||
#endif
|
||||
|
||||
#if defined(CONFIG_WAKELOCK) || defined(CONFIG_ANDROID_POWER)
|
||||
#if defined(CONFIG_WAKELOCK)
|
||||
//DBG_88E("####%s: suspend_lock_count:%d####\n", __func__, rtw_suspend_lock.stat.count);
|
||||
#endif
|
||||
}
|
||||
|
@ -372,8 +362,6 @@ inline void rtw_unlock_suspend(void)
|
|||
{
|
||||
#ifdef CONFIG_WAKELOCK
|
||||
wake_unlock(&rtw_suspend_lock);
|
||||
#elif defined(CONFIG_ANDROID_POWER)
|
||||
android_unlock_suspend(&rtw_suspend_lock);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -382,8 +370,6 @@ inline void rtw_lock_suspend_timeout(long timeout)
|
|||
{
|
||||
#ifdef CONFIG_WAKELOCK
|
||||
wake_lock_timeout(&rtw_suspend_lock, timeout);
|
||||
#elif defined(CONFIG_ANDROID_POWER)
|
||||
android_lock_suspend_auto_expire(&rtw_suspend_lock, timeout);
|
||||
#endif
|
||||
}
|
||||
#endif //CONFIG_WOWLAN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue