mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
812361a4e9
PD#SWPL-95684 Problem: combine pm and reboot modules Solution: result: amlogic-pm.ko original: amlogic-pm.ko amlogic-reboot.ko Verify: sc2 Change-Id: I25366f4413a7e7ec84131321e9b686b337358d70 Signed-off-by: Wanwei Jiang <wanwei.jiang@amlogic.com>
38 lines
558 B
C
38 lines
558 B
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* Copyright (c) 2019 Amlogic, Inc. All rights reserved.
|
|
*/
|
|
|
|
#ifndef _PM_MAIN_H__
|
|
#define _PM_MAIN_H__
|
|
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_GX_SUSPEND)
|
|
int pm_init(void);
|
|
void pm_exit(void);
|
|
#else
|
|
static inline int pm_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void pm_exit(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#if IS_ENABLED(CONFIG_AMLOGIC_GX_REBOOT)
|
|
int reboot_init(void);
|
|
void reboot_exit(void);
|
|
#else
|
|
static inline int reboot_init(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
static inline void reboot_exit(void)
|
|
{
|
|
}
|
|
#endif
|
|
|
|
#endif /* _PM_MAIN_H__ */
|