From 79bcc662d91dddc67bcd638f4419fc3cac944105 Mon Sep 17 00:00:00 2001 From: zhuyanlin Date: Wed, 16 Mar 2022 13:39:18 +0800 Subject: [PATCH] power:driver: move pm_auto_update to outer dir Pm_auto_update maybe called by outter PM users Signed-off-by: zhuyanlin --- drivers/power/pm.h | 16 ---------------- include/nuttx/power/pm.h | 16 ++++++++++++++++ 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/drivers/power/pm.h b/drivers/power/pm.h index c067e12e794..c3cdb675952 100644 --- a/drivers/power/pm.h +++ b/drivers/power/pm.h @@ -117,22 +117,6 @@ EXTERN struct pm_global_s g_pmglobals; * Public Function Prototypes ****************************************************************************/ -/**************************************************************************** - * Name: pm_auto_updatestate - * - * Description: - * This function update the domain state and notify the power system. - * - * Input Parameters: - * domain - The PM domain to check - * - * Returned Value: - * None. - * - ****************************************************************************/ - -void pm_auto_updatestate(int domain); - /**************************************************************************** * Name: pm_lock * diff --git a/include/nuttx/power/pm.h b/include/nuttx/power/pm.h index d3da7863788..29cc0cfb37c 100644 --- a/include/nuttx/power/pm.h +++ b/include/nuttx/power/pm.h @@ -598,6 +598,22 @@ int pm_changestate(int domain, enum pm_state_e newstate); enum pm_state_e pm_querystate(int domain); +/**************************************************************************** + * Name: pm_auto_updatestate + * + * Description: + * This function update the domain state and notify the power system. + * + * Input Parameters: + * domain - The PM domain to check + * + * Returned Value: + * None. + * + ****************************************************************************/ + +void pm_auto_updatestate(int domain); + #undef EXTERN #ifdef __cplusplus }