Commit c6a0619a authored by Flavio Ceolin's avatar Flavio Ceolin Committed by Anas Nashif
Browse files

power: doc: Create a subgroup to constraint API



Create a separate sub group for constraint APIs. This way it is
possible to reference this api directly in the power management
reference without mess with the rest of the documentation.

Signed-off-by: default avatarFlavio Ceolin <flavio.ceolin@intel.com>
parent 87c6311d
Loading
Loading
Loading
Loading
+35 −23
Original line number Diff line number Diff line
@@ -88,6 +88,41 @@ void pm_dump_debug_info(void);

#endif /* CONFIG_PM_DEBUG */

/**
 * @brief Register a power management notifier
 *
 * Register the given notifier from the power management notification
 * list.
 *
 * @param notifier pm_notifier object to be registered.
 */
void pm_notifier_register(struct pm_notifier *notifier);

/**
 * @brief Unregister a power management notifier
 *
 * Remove the given notifier from the power management notification
 * list. After that this object callbacks will not be called.
 *
 * @param notifier pm_notifier object to be unregistered.
 *
 * @return 0 if the notifier was successfully removed, a negative value
 * otherwise.
 */
int pm_notifier_unregister(struct pm_notifier *notifier);

/**
 * @}
 */

/**
 * @brief System Power Management Constraint API
 *
 * @defgroup system_power_management_constraint_api Constraint API
 * @ingroup power_management_api
 * @{
 */

/**
 * @brief Set a constraint for a power state
 *
@@ -126,29 +161,6 @@ void pm_constraint_release(enum pm_state state);
 */
bool pm_constraint_get(enum pm_state state);

/**
 * @brief Register a power management notifier
 *
 * Register the given notifier from the power management notification
 * list.
 *
 * @param notifier pm_notifier object to be registered.
 */
void pm_notifier_register(struct pm_notifier *notifier);

/**
 * @brief Unregister a power management notifier
 *
 * Remove the given notifier from the power management notification
 * list. After that this object callbacks will not be called.
 *
 * @param notifier pm_notifier object to be unregistered.
 *
 * @return 0 if the notifier was successfully removed, a negative value
 * otherwise.
 */
int pm_notifier_unregister(struct pm_notifier *notifier);

/**
 * @}
 */