drivers: counter: 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
fdfca41e63
commit
f9928479a1
18 changed files with 18 additions and 18 deletions
|
@ -208,5 +208,5 @@ static const struct counter_driver_api api = {
|
||||||
.get_value = get_value
|
.get_value = get_value
|
||||||
};
|
};
|
||||||
|
|
||||||
DEVICE_DEFINE(counter_cmos, "CMOS", init, device_pm_control_nop, NULL, &info,
|
DEVICE_DEFINE(counter_cmos, "CMOS", init, NULL, NULL, &info,
|
||||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &api);
|
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &api);
|
||||||
|
|
|
@ -273,7 +273,7 @@ static void counter_esp32_isr(struct device *dev)
|
||||||
\
|
\
|
||||||
DEVICE_DT_INST_DEFINE(n, \
|
DEVICE_DT_INST_DEFINE(n, \
|
||||||
counter_esp32_init, \
|
counter_esp32_init, \
|
||||||
device_pm_control_nop, &counter_data_##n, \
|
NULL, &counter_data_##n, \
|
||||||
&counter_config_##n, PRE_KERNEL_1, \
|
&counter_config_##n, PRE_KERNEL_1, \
|
||||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &counter_api);
|
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &counter_api);
|
||||||
|
|
||||||
|
|
|
@ -382,7 +382,7 @@ static const struct counter_gecko_config counter_gecko_0_config = {
|
||||||
|
|
||||||
static struct counter_gecko_data counter_gecko_0_data;
|
static struct counter_gecko_data counter_gecko_0_data;
|
||||||
|
|
||||||
DEVICE_DT_INST_DEFINE(0, counter_gecko_init, device_pm_control_nop,
|
DEVICE_DT_INST_DEFINE(0, counter_gecko_init, NULL,
|
||||||
&counter_gecko_0_data, &counter_gecko_0_config,
|
&counter_gecko_0_data, &counter_gecko_0_config,
|
||||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||||
&counter_gecko_driver_api);
|
&counter_gecko_driver_api);
|
||||||
|
|
|
@ -158,7 +158,7 @@ static const struct imx_epit_config imx_epit_##idx##z_config = { \
|
||||||
static struct imx_epit_data imx_epit_##idx##_data; \
|
static struct imx_epit_data imx_epit_##idx##_data; \
|
||||||
DEVICE_DT_INST_DEFINE(idx, \
|
DEVICE_DT_INST_DEFINE(idx, \
|
||||||
&imx_epit_config_func_##idx, \
|
&imx_epit_config_func_##idx, \
|
||||||
device_pm_control_nop, \
|
NULL, \
|
||||||
&imx_epit_##idx##_data, &imx_epit_##idx##z_config.info, \
|
&imx_epit_##idx##_data, &imx_epit_##idx##z_config.info, \
|
||||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, \
|
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, \
|
||||||
&imx_epit_driver_api); \
|
&imx_epit_driver_api); \
|
||||||
|
|
|
@ -418,7 +418,7 @@ static const struct counter_driver_api rtc_stm32_driver_api = {
|
||||||
.get_top_value = rtc_stm32_get_top_value,
|
.get_top_value = rtc_stm32_get_top_value,
|
||||||
};
|
};
|
||||||
|
|
||||||
DEVICE_DT_INST_DEFINE(0, &rtc_stm32_init, device_pm_control_nop,
|
DEVICE_DT_INST_DEFINE(0, &rtc_stm32_init, NULL,
|
||||||
&rtc_data, &rtc_config, PRE_KERNEL_1,
|
&rtc_data, &rtc_config, PRE_KERNEL_1,
|
||||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &rtc_stm32_driver_api);
|
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &rtc_stm32_driver_api);
|
||||||
|
|
||||||
|
|
|
@ -324,7 +324,7 @@ static int counter_xec_init(const struct device *dev)
|
||||||
\
|
\
|
||||||
DEVICE_DT_INST_DEFINE(inst, \
|
DEVICE_DT_INST_DEFINE(inst, \
|
||||||
counter_xec_init, \
|
counter_xec_init, \
|
||||||
device_pm_control_nop, \
|
NULL, \
|
||||||
&counter_xec_dev_data_##inst, \
|
&counter_xec_dev_data_##inst, \
|
||||||
&counter_xec_dev_config_##inst, \
|
&counter_xec_dev_config_##inst, \
|
||||||
POST_KERNEL, \
|
POST_KERNEL, \
|
||||||
|
|
|
@ -219,7 +219,7 @@ static const struct counter_driver_api mcux_gpt_driver_api = {
|
||||||
static int mcux_gpt_## n ##_init(const struct device *dev); \
|
static int mcux_gpt_## n ##_init(const struct device *dev); \
|
||||||
DEVICE_DT_INST_DEFINE(n, \
|
DEVICE_DT_INST_DEFINE(n, \
|
||||||
mcux_gpt_## n ##_init, \
|
mcux_gpt_## n ##_init, \
|
||||||
device_pm_control_nop, \
|
NULL, \
|
||||||
&mcux_gpt_data_ ## n, \
|
&mcux_gpt_data_ ## n, \
|
||||||
&mcux_gpt_config_ ## n, \
|
&mcux_gpt_config_ ## n, \
|
||||||
POST_KERNEL, \
|
POST_KERNEL, \
|
||||||
|
|
|
@ -232,7 +232,7 @@ static struct mcux_lptmr_config mcux_lptmr_config_0 = {
|
||||||
.irq_config_func = mcux_lptmr_irq_config_0,
|
.irq_config_func = mcux_lptmr_irq_config_0,
|
||||||
};
|
};
|
||||||
|
|
||||||
DEVICE_DT_INST_DEFINE(0, &mcux_lptmr_init, device_pm_control_nop,
|
DEVICE_DT_INST_DEFINE(0, &mcux_lptmr_init, NULL,
|
||||||
&mcux_lptmr_data_0,
|
&mcux_lptmr_data_0,
|
||||||
&mcux_lptmr_config_0,
|
&mcux_lptmr_config_0,
|
||||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||||
|
|
|
@ -225,7 +225,7 @@ static const struct mcux_pit_config mcux_pit_config_0 = {
|
||||||
.irq_config_func = mcux_pit_irq_config_0,
|
.irq_config_func = mcux_pit_irq_config_0,
|
||||||
};
|
};
|
||||||
|
|
||||||
DEVICE_DT_INST_DEFINE(0, &mcux_pit_init, device_pm_control_nop,
|
DEVICE_DT_INST_DEFINE(0, &mcux_pit_init, NULL,
|
||||||
&mcux_pit_data_0, &mcux_pit_config_0, POST_KERNEL,
|
&mcux_pit_data_0, &mcux_pit_config_0, POST_KERNEL,
|
||||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &mcux_pit_driver_api);
|
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &mcux_pit_driver_api);
|
||||||
|
|
||||||
|
|
|
@ -269,7 +269,7 @@ static struct mcux_rtc_config mcux_rtc_config_0 = {
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
DEVICE_DT_INST_DEFINE(0, &mcux_rtc_init, device_pm_control_nop,
|
DEVICE_DT_INST_DEFINE(0, &mcux_rtc_init, NULL,
|
||||||
&mcux_rtc_data_0, &mcux_rtc_config_0.info,
|
&mcux_rtc_data_0, &mcux_rtc_config_0.info,
|
||||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||||
&mcux_rtc_driver_api);
|
&mcux_rtc_driver_api);
|
||||||
|
|
|
@ -149,5 +149,5 @@ static const struct counter_config_info ctr_config = {
|
||||||
};
|
};
|
||||||
|
|
||||||
DEVICE_DT_DEFINE(DT_NODELABEL(DT_COUNTER_LABEL), ctr_init,
|
DEVICE_DT_DEFINE(DT_NODELABEL(DT_COUNTER_LABEL), ctr_init,
|
||||||
device_pm_control_nop, NULL, &ctr_config, PRE_KERNEL_1,
|
NULL, NULL, &ctr_config, PRE_KERNEL_1,
|
||||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &ctr_api);
|
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &ctr_api);
|
||||||
|
|
|
@ -688,7 +688,7 @@ static const struct counter_driver_api counter_nrfx_driver_api = {
|
||||||
}; \
|
}; \
|
||||||
DEVICE_DT_DEFINE(RTC(idx), \
|
DEVICE_DT_DEFINE(RTC(idx), \
|
||||||
counter_##idx##_init, \
|
counter_##idx##_init, \
|
||||||
device_pm_control_nop, \
|
NULL, \
|
||||||
&counter_##idx##_data, \
|
&counter_##idx##_data, \
|
||||||
&nrfx_counter_##idx##_config.info, \
|
&nrfx_counter_##idx##_config.info, \
|
||||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||||
|
|
|
@ -423,7 +423,7 @@ static const struct counter_driver_api counter_nrfx_driver_api = {
|
||||||
}; \
|
}; \
|
||||||
DEVICE_DT_DEFINE(TIMER(idx), \
|
DEVICE_DT_DEFINE(TIMER(idx), \
|
||||||
counter_##idx##_init, \
|
counter_##idx##_init, \
|
||||||
device_pm_control_nop, \
|
NULL, \
|
||||||
&counter_##idx##_data, \
|
&counter_##idx##_data, \
|
||||||
&nrfx_counter_##idx##_config.info, \
|
&nrfx_counter_##idx##_config.info, \
|
||||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||||
|
|
|
@ -438,7 +438,7 @@ static const struct counter_driver_api counter_sam0_tc32_driver_api = {
|
||||||
\
|
\
|
||||||
DEVICE_DT_INST_DEFINE(n, \
|
DEVICE_DT_INST_DEFINE(n, \
|
||||||
&counter_sam0_tc32_initialize, \
|
&counter_sam0_tc32_initialize, \
|
||||||
device_pm_control_nop, \
|
NULL, \
|
||||||
&counter_sam0_tc32_dev_data_##n, \
|
&counter_sam0_tc32_dev_data_##n, \
|
||||||
&counter_sam0_tc32_dev_config_##n, \
|
&counter_sam0_tc32_dev_config_##n, \
|
||||||
PRE_KERNEL_1, \
|
PRE_KERNEL_1, \
|
||||||
|
|
|
@ -338,7 +338,7 @@ static const struct counter_driver_api xlnx_axi_timer_driver_api = {
|
||||||
static struct xlnx_axi_timer_data xlnx_axi_timer_data_##n; \
|
static struct xlnx_axi_timer_data xlnx_axi_timer_data_##n; \
|
||||||
\
|
\
|
||||||
DEVICE_DT_INST_DEFINE(n, &xlnx_axi_timer_init, \
|
DEVICE_DT_INST_DEFINE(n, &xlnx_axi_timer_init, \
|
||||||
device_pm_control_nop, \
|
NULL, \
|
||||||
&xlnx_axi_timer_data_##n, \
|
&xlnx_axi_timer_data_##n, \
|
||||||
&xlnx_axi_timer_config_##n, \
|
&xlnx_axi_timer_config_##n, \
|
||||||
POST_KERNEL, \
|
POST_KERNEL, \
|
||||||
|
|
|
@ -1317,7 +1317,7 @@ static struct ds3231_data ds3231_0_data;
|
||||||
#error COUNTER_MAXIM_DS3231_INIT_PRIORITY must be greater than I2C_INIT_PRIORITY
|
#error COUNTER_MAXIM_DS3231_INIT_PRIORITY must be greater than I2C_INIT_PRIORITY
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
DEVICE_DT_INST_DEFINE(0, ds3231_init, device_pm_control_nop, &ds3231_0_data,
|
DEVICE_DT_INST_DEFINE(0, ds3231_init, NULL, &ds3231_0_data,
|
||||||
&ds3231_0_config,
|
&ds3231_0_config,
|
||||||
POST_KERNEL, CONFIG_COUNTER_MAXIM_DS3231_INIT_PRIORITY,
|
POST_KERNEL, CONFIG_COUNTER_MAXIM_DS3231_INIT_PRIORITY,
|
||||||
&ds3231_api);
|
&ds3231_api);
|
||||||
|
|
|
@ -193,7 +193,7 @@ static int dtmr_cmsdk_apb_init(const struct device *dev)
|
||||||
\
|
\
|
||||||
DEVICE_DT_INST_DEFINE(inst, \
|
DEVICE_DT_INST_DEFINE(inst, \
|
||||||
dtmr_cmsdk_apb_init, \
|
dtmr_cmsdk_apb_init, \
|
||||||
device_pm_control_nop, \
|
NULL, \
|
||||||
&dtmr_cmsdk_apb_dev_data_##inst, \
|
&dtmr_cmsdk_apb_dev_data_##inst, \
|
||||||
&dtmr_cmsdk_apb_cfg_##inst, POST_KERNEL, \
|
&dtmr_cmsdk_apb_cfg_##inst, POST_KERNEL, \
|
||||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||||
|
|
|
@ -188,7 +188,7 @@ static int tmr_cmsdk_apb_init(const struct device *dev)
|
||||||
\
|
\
|
||||||
DEVICE_DT_INST_DEFINE(inst, \
|
DEVICE_DT_INST_DEFINE(inst, \
|
||||||
tmr_cmsdk_apb_init, \
|
tmr_cmsdk_apb_init, \
|
||||||
device_pm_control_nop, \
|
NULL, \
|
||||||
&tmr_cmsdk_apb_dev_data_##inst, \
|
&tmr_cmsdk_apb_dev_data_##inst, \
|
||||||
&tmr_cmsdk_apb_cfg_##inst, POST_KERNEL, \
|
&tmr_cmsdk_apb_cfg_##inst, POST_KERNEL, \
|
||||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue