diff --git a/drivers/power/Kconfig b/drivers/power/Kconfig index 5d4b615fe6..11fc41225d 100644 --- a/drivers/power/Kconfig +++ b/drivers/power/Kconfig @@ -52,13 +52,13 @@ config PM_GOVERNOR_EXPLICIT_RELAX can hold off power levels using pm_stay() (via boardctl). This option will initialize all run levels as if - pm_stay/pm_stay_timeout() were to be called once for each. + pm_stay/pm_staytimeout() were to be called once for each. if set to -1, that means pm_stay(), so that your application needs to call pm_relax() (via boardctl()) for every run-level you wish to allow to enter. - if set to timeout (unit: ms), that means pm_stay_timeout(ms). + if set to timeout (unit: ms), that means pm_staytimeout(ms). pm_relax() will be auto called after timeout. if PM_GOVERNOR_ACTIVITY diff --git a/drivers/power/pm_activity.c b/drivers/power/pm_activity.c index f965327084..a50e7ecf0b 100644 --- a/drivers/power/pm_activity.c +++ b/drivers/power/pm_activity.c @@ -185,7 +185,7 @@ void pm_relax(int domain, enum pm_state_e state) } /**************************************************************************** - * Name: pm_stay_timeout + * Name: pm_staytimeout * * Description: * This function is called by a device driver to indicate that it is @@ -206,7 +206,7 @@ void pm_relax(int domain, enum pm_state_e state) * ****************************************************************************/ -void pm_stay_timeout(int domain, enum pm_state_e state, int ms) +void pm_staytimeout(int domain, enum pm_state_e state, int ms) { FAR struct pm_domain_s *pdom; FAR struct wdog_s *wdog; diff --git a/drivers/power/pm_governor.c b/drivers/power/pm_governor.c index 590bd371f8..04adc8f677 100644 --- a/drivers/power/pm_governor.c +++ b/drivers/power/pm_governor.c @@ -101,7 +101,7 @@ int pm_set_governor(int domain, FAR const struct pm_governor_s *gov) #if CONFIG_PM_GOVERNOR_EXPLICIT_RELAX < 0 pm_stay(dom, state); #else - pm_stay_timeout(dom, state, CONFIG_PM_GOVERNOR_EXPLICIT_RELAX); + pm_staytimeout(dom, state, CONFIG_PM_GOVERNOR_EXPLICIT_RELAX); #endif } } diff --git a/include/nuttx/power/pm.h b/include/nuttx/power/pm.h index 97021df7e9..0aabc36d46 100644 --- a/include/nuttx/power/pm.h +++ b/include/nuttx/power/pm.h @@ -500,7 +500,7 @@ void pm_stay(int domain, enum pm_state_e state); void pm_relax(int domain, enum pm_state_e state); /**************************************************************************** - * Name: pm_stay_timeout + * Name: pm_staytimeout * * Description: * This function is called by a device driver to indicate that it is @@ -521,7 +521,7 @@ void pm_relax(int domain, enum pm_state_e state); * ****************************************************************************/ -void pm_stay_timeout(int domain, enum pm_state_e state, int ms); +void pm_staytimeout(int domain, enum pm_state_e state, int ms); /**************************************************************************** * Name: pm_staycount