Skip to content

Commit 00252b8

Browse files
Flavio Ceolinnashif
authored andcommitted
pm: Fix documentation section
pm_power_state_next_get does not belong the pm subsys hooks section. Signed-off-by: Flavio Ceolin <[email protected]>
1 parent 7226247 commit 00252b8

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

include/pm/pm.h

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,17 @@ void pm_notifier_register(struct pm_notifier *notifier);
102102
*/
103103
int pm_notifier_unregister(struct pm_notifier *notifier);
104104

105+
/**
106+
* @brief Gets the next power state that will be used.
107+
*
108+
* This function returns the next power state that will be used by the
109+
* SoC.
110+
*
111+
* @param cpu CPU index.
112+
* @return next pm_state_info that will be used
113+
*/
114+
const struct pm_state_info pm_power_state_next_get(uint8_t cpu);
115+
105116
/**
106117
* @}
107118
*/
@@ -173,17 +184,6 @@ bool pm_constraint_get(enum pm_state state);
173184
*/
174185
void pm_power_state_set(struct pm_state_info info);
175186

176-
/**
177-
* @brief Gets the next power state that will be used.
178-
*
179-
* This function returns the next power state that will be used by the
180-
* SoC.
181-
*
182-
* @param cpu CPU index.
183-
* @return next pm_state_info that will be used
184-
*/
185-
const struct pm_state_info pm_power_state_next_get(uint8_t cpu);
186-
187187
/**
188188
* @brief Do any SoC or architecture specific post ops after sleep state exits.
189189
*

0 commit comments

Comments
 (0)