drivers: 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:
Gerard Marull-Paretas 2021-11-02 16:19:41 +01:00 committed by Anas Nashif
commit 4baf1e01ff
35 changed files with 115 additions and 110 deletions

View file

@ -309,8 +309,8 @@ int ioapic_resume_from_suspend(const struct device *port)
* the *context may include IN data or/and OUT data
*/
__pinned_func
static int ioapic_device_ctrl(const struct device *dev,
enum pm_device_action action)
static int ioapic_pm_action(const struct device *dev,
enum pm_device_action action)
{
int ret = 0;
@ -497,7 +497,7 @@ static void IoApicRedUpdateLo(unsigned int irq,
#ifdef CONFIG_PM_DEVICE
SYS_DEVICE_DEFINE("ioapic", ioapic_init, ioapic_device_ctrl, PRE_KERNEL_1,
SYS_DEVICE_DEFINE("ioapic", ioapic_init, ioapic_pm_action, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#else
SYS_INIT(ioapic_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);

View file

@ -408,8 +408,8 @@ int loapic_resume(const struct device *port)
* the *context may include IN data or/and OUT data
*/
__pinned_func
static int loapic_device_ctrl(const struct device *dev,
enum pm_device_action action)
static int loapic_pm_action(const struct device *dev,
enum pm_device_action action)
{
int ret = 0;
@ -427,7 +427,7 @@ static int loapic_device_ctrl(const struct device *dev,
return ret;
}
SYS_DEVICE_DEFINE("loapic", loapic_init, loapic_device_ctrl, PRE_KERNEL_1,
SYS_DEVICE_DEFINE("loapic", loapic_init, loapic_pm_action, PRE_KERNEL_1,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#else
SYS_INIT(loapic_init, PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);