drivers: pwm: remove usage of device_pm_control_nop
device_pm_control_nop is now deprecated in favour of NULL. Signed-off-by: Gerard Marull-Paretas <gerard.marull@nordicsemi.no>
This commit is contained in:
parent
7d10f84ca9
commit
3b18fe0af7
17 changed files with 17 additions and 18 deletions
|
@ -114,8 +114,7 @@ static int pwm_gecko_init(const struct device *dev)
|
|||
.pin = DT_INST_PROP_BY_IDX(index, pin_location, 2), \
|
||||
}; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(index, &pwm_gecko_init, device_pm_control_nop, \
|
||||
NULL, \
|
||||
DEVICE_DT_INST_DEFINE(index, &pwm_gecko_init, NULL, NULL, \
|
||||
&pwm_gecko_config_##index, POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
&pwm_gecko_driver_api);
|
||||
|
|
|
@ -166,7 +166,7 @@ static const struct pwm_driver_api imx_pwm_driver_api = {
|
|||
\
|
||||
static struct imx_pwm_data imx_pwm_data_##n; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(n, &imx_pwm_init, device_pm_control_nop, \
|
||||
DEVICE_DT_INST_DEFINE(n, &imx_pwm_init, NULL, \
|
||||
&imx_pwm_data_##n, \
|
||||
&imx_pwm_config_##n, POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
|
|
|
@ -520,6 +520,6 @@ const static struct pwm_led_esp32_config pwm_led_esp32_config = {
|
|||
};
|
||||
|
||||
DEVICE_DEFINE(pwm_led_esp32_0, CONFIG_PWM_LED_ESP32_DEV_NAME_0,
|
||||
pwm_led_esp32_init, device_pm_control_nop, NULL,
|
||||
pwm_led_esp32_init, NULL, NULL,
|
||||
&pwm_led_esp32_config, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &pwm_led_esp32_api);
|
||||
|
|
|
@ -107,7 +107,7 @@ static const struct pwm_driver_api pwm_litex_driver_api = {
|
|||
\
|
||||
DEVICE_DT_INST_DEFINE(n, \
|
||||
pwm_litex_init, \
|
||||
device_pm_control_nop, \
|
||||
NULL, \
|
||||
NULL, \
|
||||
&pwm_litex_cfg_##n, \
|
||||
POST_KERNEL, \
|
||||
|
|
|
@ -389,7 +389,7 @@ static struct pwm_driver_api pwm_xec_api = {
|
|||
\
|
||||
DEVICE_DT_INST_DEFINE(inst, \
|
||||
pwm_xec_init, \
|
||||
device_pm_control_nop, \
|
||||
NULL, \
|
||||
NULL, \
|
||||
&pwm_xec_dev_config_##inst, \
|
||||
POST_KERNEL, \
|
||||
|
|
|
@ -165,7 +165,7 @@ static const struct pwm_driver_api pwm_mcux_driver_api = {
|
|||
\
|
||||
DEVICE_DT_INST_DEFINE(n, \
|
||||
pwm_mcux_init, \
|
||||
device_pm_control_nop, \
|
||||
NULL, \
|
||||
&pwm_mcux_data_ ## n, \
|
||||
&pwm_mcux_config_ ## n, \
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,\
|
||||
|
|
|
@ -476,7 +476,7 @@ static const struct mcux_ftm_config mcux_ftm_config_##n = { \
|
|||
static struct mcux_ftm_data mcux_ftm_data_##n; \
|
||||
static const struct mcux_ftm_config mcux_ftm_config_##n; \
|
||||
DEVICE_DT_INST_DEFINE(n, &mcux_ftm_init, \
|
||||
device_pm_control_nop, &mcux_ftm_data_##n, \
|
||||
NULL, &mcux_ftm_data_##n, \
|
||||
&mcux_ftm_config_##n, \
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
&mcux_ftm_driver_api); \
|
||||
|
|
|
@ -324,7 +324,7 @@ static const struct pwm_driver_api mcux_pwt_driver_api = {
|
|||
static struct mcux_pwt_data mcux_pwt_data_##n; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(n, &mcux_pwt_init, \
|
||||
device_pm_control_nop, &mcux_pwt_data_##n, \
|
||||
NULL, &mcux_pwt_data_##n, \
|
||||
&mcux_pwt_config_##n, \
|
||||
POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
|
|
|
@ -186,7 +186,7 @@ static const struct pwm_driver_api mcux_tpm_driver_api = {
|
|||
.mode = kTPM_EdgeAlignedPwm, \
|
||||
}; \
|
||||
static struct mcux_tpm_data mcux_tpm_data_##n; \
|
||||
DEVICE_DT_INST_DEFINE(n, &mcux_tpm_init, device_pm_control_nop, \
|
||||
DEVICE_DT_INST_DEFINE(n, &mcux_tpm_init, NULL, \
|
||||
&mcux_tpm_data_##n, \
|
||||
&mcux_tpm_config_##n, \
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
|
|
|
@ -219,7 +219,7 @@ static int pwm_npcx_init(const struct device *dev)
|
|||
static struct pwm_npcx_data pwm_npcx_data_##inst; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(inst, \
|
||||
&pwm_npcx_init, device_pm_control_nop, \
|
||||
&pwm_npcx_init, NULL, \
|
||||
&pwm_npcx_data_##inst, &pwm_npcx_cfg_##inst, \
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
&pwm_npcx_driver_api);
|
||||
|
|
|
@ -386,7 +386,7 @@ static struct pwm_data pwm_nrf5_sw_0_data;
|
|||
|
||||
DEVICE_DT_INST_DEFINE(0,
|
||||
pwm_nrf5_sw_init,
|
||||
device_pm_control_nop,
|
||||
NULL,
|
||||
&pwm_nrf5_sw_0_data,
|
||||
&pwm_nrf5_sw_0_config,
|
||||
POST_KERNEL,
|
||||
|
|
|
@ -186,7 +186,7 @@ static const struct pwm_driver_api rv32m1_tpm_driver_api = {
|
|||
.mode = kTPM_EdgeAlignedPwm, \
|
||||
}; \
|
||||
static struct rv32m1_tpm_data rv32m1_tpm_data_##n; \
|
||||
DEVICE_DT_INST_DEFINE(n, &rv32m1_tpm_init, device_pm_control_nop, \
|
||||
DEVICE_DT_INST_DEFINE(n, &rv32m1_tpm_init, NULL, \
|
||||
&rv32m1_tpm_data_##n, \
|
||||
&rv32m1_tpm_config_##n, \
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
|
|
|
@ -107,7 +107,7 @@ static const struct pwm_driver_api sam_pwm_driver_api = {
|
|||
}; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(inst, \
|
||||
&sam_pwm_init, device_pm_control_nop \
|
||||
&sam_pwm_init, NULL \
|
||||
NULL, &sam_pwm_config_##inst, \
|
||||
POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
|
|
|
@ -157,7 +157,7 @@ static const struct pwm_driver_api pwm_sam0_driver_api = {
|
|||
PWM_SAM0_INIT_CLOCKS(inst), \
|
||||
}; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(inst, &pwm_sam0_init, device_pm_control_nop, \
|
||||
DEVICE_DT_INST_DEFINE(inst, &pwm_sam0_init, NULL, \
|
||||
NULL, &pwm_sam0_config_##inst, \
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
&pwm_sam0_driver_api);
|
||||
|
|
|
@ -231,7 +231,7 @@ static const struct pwm_driver_api pwm_sifive_api = {
|
|||
}; \
|
||||
DEVICE_DT_INST_DEFINE(n, \
|
||||
pwm_sifive_init, \
|
||||
device_pm_control_nop, \
|
||||
NULL, \
|
||||
&pwm_sifive_data_##n, \
|
||||
&pwm_sifive_cfg_##n, \
|
||||
POST_KERNEL, \
|
||||
|
|
|
@ -355,7 +355,7 @@ static int pwm_stm32_init(const struct device *dev)
|
|||
.pinctrl_len = ARRAY_SIZE(pwm_pins_##index), \
|
||||
}; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(index, &pwm_stm32_init, device_pm_control_nop, \
|
||||
DEVICE_DT_INST_DEFINE(index, &pwm_stm32_init, NULL, \
|
||||
&pwm_stm32_data_##index, \
|
||||
&pwm_stm32_config_##index, POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
|
|
|
@ -204,7 +204,7 @@ static const struct pwm_driver_api xlnx_axi_timer_driver_api = {
|
|||
}; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(n, &xlnx_axi_timer_init, \
|
||||
device_pm_control_nop, NULL, \
|
||||
NULL, NULL, \
|
||||
&xlnx_axi_timer_config_##n, \
|
||||
POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue