#ifndef PM_H_INCLUDED
#define PM_H_INCLUDED
struct cw1200_common;
struct cw1200_suspend_state;
struct cw1200_pm_state { … };
#ifdef CONFIG_PM
int cw1200_pm_init(struct cw1200_pm_state *pm,
struct cw1200_common *priv);
void cw1200_pm_deinit(struct cw1200_pm_state *pm);
int cw1200_wow_suspend(struct ieee80211_hw *hw,
struct cfg80211_wowlan *wowlan);
int cw1200_can_suspend(struct cw1200_common *priv);
int cw1200_wow_resume(struct ieee80211_hw *hw);
void cw1200_pm_stay_awake(struct cw1200_pm_state *pm,
unsigned long tmo);
#else
static inline void cw1200_pm_stay_awake(struct cw1200_pm_state *pm,
unsigned long tmo)
{
}
static inline int cw1200_can_suspend(struct cw1200_common *priv)
{
return 0;
}
#endif
#endif