From 00252b8d9e39f96164c54eda3379b23214605dcf Mon Sep 17 00:00:00 2001 From: Flavio Ceolin Date: Fri, 19 Nov 2021 16:32:18 -0800 Subject: [PATCH] pm: Fix documentation section pm_power_state_next_get does not belong the pm subsys hooks section. Signed-off-by: Flavio Ceolin --- include/pm/pm.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/include/pm/pm.h b/include/pm/pm.h index e4bdf73747e..9c096d7792c 100644 --- a/include/pm/pm.h +++ b/include/pm/pm.h @@ -102,6 +102,17 @@ void pm_notifier_register(struct pm_notifier *notifier); */ int pm_notifier_unregister(struct pm_notifier *notifier); +/** + * @brief Gets the next power state that will be used. + * + * This function returns the next power state that will be used by the + * SoC. + * + * @param cpu CPU index. + * @return next pm_state_info that will be used + */ +const struct pm_state_info pm_power_state_next_get(uint8_t cpu); + /** * @} */ @@ -173,17 +184,6 @@ bool pm_constraint_get(enum pm_state state); */ void pm_power_state_set(struct pm_state_info info); -/** - * @brief Gets the next power state that will be used. - * - * This function returns the next power state that will be used by the - * SoC. - * - * @param cpu CPU index. - * @return next pm_state_info that will be used - */ -const struct pm_state_info pm_power_state_next_get(uint8_t cpu); - /** * @brief Do any SoC or architecture specific post ops after sleep state exits. *