Skip to content

Commit ddad4c2

Browse files
pm: device: extend pm_device_driver_init() description
Add note which describes the behavior of pm_device_driver_init() if CONFIG_PM_DEVICE=n. Signed-off-by: Bjarki Arge Andreasen <bjarki.andreasen@nordicsemi.no>
1 parent 0c82c35 commit ddad4c2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/zephyr/pm/device.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,9 @@ bool pm_device_is_powered(const struct device *dev);
628628
* @ref PM_DEVICE_STATE_OFF, or @ref PM_DEVICE_STATE_SUSPENDED if device can
629629
* never be powered off.
630630
*
631+
* @note If CONFIG_PM_DEVICE=n, PM_DEVICE_ACTION_TURN_ON followed by
632+
* PM_DEVICE_ACTION_RESUME will be invoked unconditionally.
633+
*
631634
* @param dev Device instance.
632635
* @param action_cb Device PM control callback function.
633636
* @retval 0 On success.

0 commit comments

Comments
 (0)