pm: modify for nxstyle

Signed-off-by: ligd <liguiding1@xiaomi.com>
This commit is contained in:
ligd
2022-07-22 12:10:50 +08:00
committed by Xiang Xiao
parent 3ea2dbb7b4
commit 7fa3ecde5a
5 changed files with 20 additions and 22 deletions
+2 -5
View File
@@ -87,13 +87,11 @@
* own, custom idle loop to support board-specific IDLE time power management
*/
#define PM_WAKELOCK_INITIALIZER(name, domain, state) {name, domain, state}
#define PM_WAKELOCK_DECLARE(var, name, domain, state) \
struct pm_wakelock_s var = PM_WAKELOCK_INITIALIZER(name, domain, state)
struct pm_wakelock_s var = {name, domain, state}
#define PM_WAKELOCK_DECLARE_STATIC(var, name, domain, state) \
static struct pm_wakelock_s var = PM_WAKELOCK_INITIALIZER(name, domain, state)
static struct pm_wakelock_s var = {name, domain, state}
/****************************************************************************
* Public Types
@@ -801,7 +799,6 @@ void pm_auto_updatestate(int domain);
* avoid so much conditional compilation in driver code when PM is disabled:
*/
# define PM_WAKELOCK_INITIALIZER(n,d,s) {0}
# define PM_WAKELOCK_DECLARE(v,n,d,s)
# define PM_WAKELOCK_DECLARE_STATIC(v,n,d,s)
# define pm_initialize()