mirror of
https://github.com/lwfinger/rtl8188eu.git
synced 2025-05-07 05:53:06 +00:00
rtl8188eu: Remove CONFIG_WAKELOCK, CONFIG_HAS_EARLYSUSPEND, and CONFIG_ANDROID_POWER
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
This commit is contained in:
parent
549cb92f47
commit
fc326e6a07
5 changed files with 2 additions and 216 deletions
|
@ -672,14 +672,6 @@ __inline static u32 bitshift(u32 bitmask)
|
|||
/* limitation of path length */
|
||||
#define PATH_LENGTH_MAX PATH_MAX
|
||||
|
||||
|
||||
/* Suspend lock prevent system from going suspend */
|
||||
#ifdef CONFIG_WAKELOCK
|
||||
#include <linux/wakelock.h>
|
||||
#elif defined(CONFIG_ANDROID_POWER)
|
||||
#include <linux/android_power.h>
|
||||
#endif
|
||||
|
||||
void rtw_suspend_lock_init(void);
|
||||
void rtw_suspend_lock_uninit(void);
|
||||
void rtw_lock_suspend(void);
|
||||
|
|
|
@ -24,12 +24,7 @@
|
|||
#include <osdep_service.h>
|
||||
#include <drv_types.h>
|
||||
|
||||
#ifdef CONFIG_HAS_EARLYSUSPEND
|
||||
#include <linux/earlysuspend.h>
|
||||
#endif /* CONFIG_HAS_EARLYSUSPEND */
|
||||
|
||||
|
||||
#define FW_PWR0 0
|
||||
#define FW_PWR0 0
|
||||
#define FW_PWR1 1
|
||||
#define FW_PWR2 2
|
||||
#define FW_PWR3 3
|
||||
|
@ -244,16 +239,6 @@ struct pwrctrl_priv
|
|||
u8 bkeepfwalive;
|
||||
u8 brfoffbyhw;
|
||||
unsigned long PS_BBRegBackup[PSBBREG_TOTALCNT];
|
||||
|
||||
#ifdef CONFIG_HAS_EARLYSUSPEND
|
||||
struct early_suspend early_suspend;
|
||||
u8 do_late_resume;
|
||||
#endif /* CONFIG_HAS_EARLYSUSPEND */
|
||||
|
||||
#ifdef CONFIG_ANDROID_POWER
|
||||
android_early_suspend_t early_suspend;
|
||||
u8 do_late_resume;
|
||||
#endif
|
||||
};
|
||||
|
||||
#define rtw_get_ips_mode_req(pwrctl) \
|
||||
|
@ -294,19 +279,11 @@ s32 LPS_RF_ON_check(struct adapter *padapter, u32 delay_ms);
|
|||
void LPS_Enter(struct adapter *padapter);
|
||||
void LPS_Leave(struct adapter *padapter);
|
||||
|
||||
#if defined(CONFIG_HAS_EARLYSUSPEND ) || defined(CONFIG_ANDROID_POWER)
|
||||
bool rtw_is_earlysuspend_registered(struct pwrctrl_priv *pwrpriv);
|
||||
bool rtw_is_do_late_resume(struct pwrctrl_priv *pwrpriv);
|
||||
void rtw_set_do_late_resume(struct pwrctrl_priv *pwrpriv, bool enable);
|
||||
void rtw_register_early_suspend(struct pwrctrl_priv *pwrpriv);
|
||||
void rtw_unregister_early_suspend(struct pwrctrl_priv *pwrpriv);
|
||||
#else
|
||||
#define rtw_is_earlysuspend_registered(pwrpriv) false
|
||||
#define rtw_is_do_late_resume(pwrpriv) false
|
||||
#define rtw_set_do_late_resume(pwrpriv, enable) do {} while (0)
|
||||
#define rtw_register_early_suspend(pwrpriv) do {} while (0)
|
||||
#define rtw_unregister_early_suspend(pwrpriv) do {} while (0)
|
||||
#endif /* CONFIG_HAS_EARLYSUSPEND || CONFIG_ANDROID_POWER */
|
||||
|
||||
u8 rtw_interface_ps_func(struct adapter *padapter, enum HAL_INTF_PS_FUNC efunc_id,u8* val);
|
||||
void rtw_set_ips_deny(struct adapter *padapter, u32 ms);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue