pm: device: move pm_device_runtime_init_*
funcs
Move the `pm_device_runtime_init_*` functions from <pm/device_runtime.h> to <pm/device.h>. The initial device state should be settable independently of whether `CONFIG_PM_DEVICE_RUNTIME` is enabled. This also resolves a compilation error when attempting to use these functions without also including <pm/device.h>. Function documentation is also updated to be more general than only referencing runtime PM, as this also applies to system PM and manually run actions. Signed-off-by: Jordan Yates <jordan.yates@data61.csiro.au>
This commit is contained in:
parent
570bc0d4bb
commit
6d1a08b3a8
6 changed files with 55 additions and 48 deletions
|
@ -123,9 +123,9 @@ static void test_power_domain_device_runtime(void)
|
|||
deva = DEVICE_DT_GET(TEST_DEVA);
|
||||
devb = DEVICE_DT_GET(TEST_DEVB);
|
||||
|
||||
pm_device_runtime_init_suspended(domain);
|
||||
pm_device_runtime_init_suspended(deva);
|
||||
pm_device_runtime_init_suspended(devb);
|
||||
pm_device_init_suspended(domain);
|
||||
pm_device_init_suspended(deva);
|
||||
pm_device_init_suspended(devb);
|
||||
|
||||
pm_device_runtime_enable(domain);
|
||||
pm_device_runtime_enable(deva);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue