samples: use common PM action callback naming
The PM callback is no longer referenced as "pm_control" but "pm_action_cb", so reflect this new naming on the callbacks. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
18519ffe8d
commit
a8fc8ef17f
2 changed files with 6 additions and 6 deletions
|
@ -77,8 +77,8 @@ static int dummy_close(const struct device *dev)
|
|||
return ret;
|
||||
}
|
||||
|
||||
static int dummy_device_pm_ctrl(const struct device *dev,
|
||||
enum pm_device_action action)
|
||||
static int dummy_device_pm_action(const struct device *dev,
|
||||
enum pm_device_action action)
|
||||
{
|
||||
switch (action) {
|
||||
case PM_DEVICE_ACTION_RESUME:
|
||||
|
@ -114,5 +114,5 @@ int dummy_init(const struct device *dev)
|
|||
}
|
||||
|
||||
DEVICE_DEFINE(dummy_driver, DUMMY_DRIVER_NAME, &dummy_init,
|
||||
dummy_device_pm_ctrl, NULL, NULL, APPLICATION,
|
||||
dummy_device_pm_action, NULL, NULL, APPLICATION,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &funcs);
|
||||
|
|
|
@ -24,8 +24,8 @@ static int dummy_transfer(const struct device *dev, uint32_t cmd,
|
|||
return 0;
|
||||
}
|
||||
|
||||
static int dummy_parent_pm_ctrl(const struct device *dev,
|
||||
enum pm_device_action action)
|
||||
static int dummy_parent_pm_action(const struct device *dev,
|
||||
enum pm_device_action action)
|
||||
{
|
||||
switch (action) {
|
||||
case PM_DEVICE_ACTION_RESUME:
|
||||
|
@ -52,5 +52,5 @@ int dummy_parent_init(const struct device *dev)
|
|||
}
|
||||
|
||||
DEVICE_DEFINE(dummy_parent, DUMMY_PARENT_NAME, &dummy_parent_init,
|
||||
dummy_parent_pm_ctrl, NULL, NULL, POST_KERNEL,
|
||||
dummy_parent_pm_action, NULL, NULL, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &funcs);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue