You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/04/01 16:11:10 UTC

[incubator-nuttx] 02/02: power:driver: move pm_auto_update to outer dir

This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git

commit 79bcc662d91dddc67bcd638f4419fc3cac944105
Author: zhuyanlin <zh...@xiaomi.com>
AuthorDate: Wed Mar 16 13:39:18 2022 +0800

    power:driver: move pm_auto_update to outer dir
    
    Pm_auto_update maybe called by outter PM users
    
    Signed-off-by: zhuyanlin <zh...@xiaomi.com>
---
 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 c067e12..c3cdb67 100644
--- a/drivers/power/pm.h
+++ b/drivers/power/pm.h
@@ -118,22 +118,6 @@ EXTERN struct pm_global_s g_pmglobals;
  ****************************************************************************/
 
 /****************************************************************************
- * 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
  *
  * Description:
diff --git a/include/nuttx/power/pm.h b/include/nuttx/power/pm.h
index d3da786..29cc0cf 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
 }