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

@ -294,8 +294,8 @@ static void pwm_nrfx_uninit(const struct device *dev)
memset(dev->data, 0, sizeof(struct pwm_nrfx_data));
}
static int pwm_nrfx_pm_control(const struct device *dev,
enum pm_device_action action)
static int pwm_nrfx_pm_action(const struct device *dev,
enum pm_device_action action)
{
int err = 0;
@ -314,7 +314,7 @@ static int pwm_nrfx_pm_control(const struct device *dev,
}
#else
#define pwm_nrfx_pm_control NULL
#define pwm_nrfx_pm_action NULL
#endif /* CONFIG_PM_DEVICE */
@ -369,7 +369,7 @@ static int pwm_nrfx_pm_control(const struct device *dev,
.seq.length = NRF_PWM_CHANNEL_COUNT \
}; \
DEVICE_DT_DEFINE(PWM(idx), \
pwm_nrfx_init, pwm_nrfx_pm_control, \
pwm_nrfx_init, pwm_nrfx_pm_action, \
&pwm_nrfx_##idx##_data, \
&pwm_nrfx_##idx##config, \
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \