drivers: adc: 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
9f86020d37
commit
510aacc45d
14 changed files with 16 additions and 16 deletions
|
@ -311,9 +311,9 @@ static const struct adc_driver_api cc32xx_driver_api = {
|
|||
}; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(index, \
|
||||
&adc_cc32xx_init, device_pm_control_nop, \
|
||||
&adc_cc32xx_data_##index, &adc_cc32xx_cfg_##index, \
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, \
|
||||
&adc_cc32xx_init, NULL, &adc_cc32xx_data_##index, \
|
||||
&adc_cc32xx_cfg_##index, POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, \
|
||||
&cc32xx_driver_api); \
|
||||
\
|
||||
static void adc_cc32xx_cfg_func_##index(void) \
|
||||
|
|
|
@ -329,7 +329,7 @@ static struct adc_it8xxx2_data adc_it8xxx2_data_0 = {
|
|||
ADC_CONTEXT_INIT_SYNC(adc_it8xxx2_data_0, ctx),
|
||||
};
|
||||
DEVICE_DT_INST_DEFINE(0, adc_it8xxx2_init,
|
||||
device_pm_control_nop,
|
||||
NULL,
|
||||
&adc_it8xxx2_data_0,
|
||||
NULL, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
|
|
|
@ -1130,7 +1130,7 @@ static const struct adc_driver_api lmp90xxx_adc_api = {
|
|||
.channels = ch, \
|
||||
}; \
|
||||
DEVICE_DT_DEFINE(DT_INST_LMP90XXX(n, t), \
|
||||
&lmp90xxx_init, device_pm_control_nop, \
|
||||
&lmp90xxx_init, NULL, \
|
||||
&lmp##t##_data_##n, \
|
||||
&lmp##t##_config_##n, POST_KERNEL, \
|
||||
CONFIG_ADC_LMP90XXX_INIT_PRIORITY, \
|
||||
|
|
|
@ -307,7 +307,7 @@ static struct adc_xec_data adc_xec_dev_data_0 = {
|
|||
ADC_CONTEXT_INIT_SYNC(adc_xec_dev_data_0, ctx),
|
||||
};
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, adc_xec_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, adc_xec_init, NULL,
|
||||
&adc_xec_dev_data_0, NULL,
|
||||
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
|
||||
&adc_xec_api);
|
||||
|
|
|
@ -357,7 +357,7 @@ static const struct adc_driver_api mcp320x_adc_api = {
|
|||
.channels = ch, \
|
||||
}; \
|
||||
DEVICE_DT_DEFINE(INST_DT_MCP320X(n, t), \
|
||||
&mcp320x_init, device_pm_control_nop, \
|
||||
&mcp320x_init, NULL, \
|
||||
&mcp##t##_data_##n, \
|
||||
&mcp##t##_config_##n, POST_KERNEL, \
|
||||
CONFIG_ADC_MCP320X_INIT_PRIORITY, \
|
||||
|
|
|
@ -284,7 +284,7 @@ static const struct adc_driver_api mcux_adc12_driver_api = {
|
|||
}; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(n, &mcux_adc12_init, \
|
||||
device_pm_control_nop, &mcux_adc12_data_##n,\
|
||||
NULL, &mcux_adc12_data_##n, \
|
||||
&mcux_adc12_config_##n, POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
&mcux_adc12_driver_api); \
|
||||
|
|
|
@ -294,7 +294,7 @@ static const struct adc_driver_api mcux_adc16_driver_api = {
|
|||
}; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(n, &mcux_adc16_init, \
|
||||
device_pm_control_nop, &mcux_adc16_data_##n,\
|
||||
NULL, &mcux_adc16_data_##n, \
|
||||
&mcux_adc16_config_##n, POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
&mcux_adc16_driver_api); \
|
||||
|
|
|
@ -394,7 +394,7 @@ static const struct adc_driver_api mcux_lpadc_driver_api = {
|
|||
}; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(n, \
|
||||
&mcux_lpadc_init, device_pm_control_nop, &mcux_lpadc_data_##n, \
|
||||
&mcux_lpadc_init, NULL, &mcux_lpadc_data_##n, \
|
||||
&mcux_lpadc_config_##n, POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
&mcux_lpadc_driver_api); \
|
||||
|
|
|
@ -322,7 +322,7 @@ static struct adc_npcx_data adc_npcx_data_0 = {
|
|||
};
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0,
|
||||
adc_npcx_init, device_pm_control_nop,
|
||||
adc_npcx_init, NULL,
|
||||
&adc_npcx_data_0, &adc_npcx_cfg_0,
|
||||
PRE_KERNEL_1,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT,
|
||||
|
|
|
@ -290,7 +290,7 @@ static const struct adc_driver_api adc_nrfx_driver_api = {
|
|||
BUILD_ASSERT((inst) == 0, \
|
||||
"multiple instances not supported"); \
|
||||
DEVICE_DT_INST_DEFINE(0, \
|
||||
init_adc, device_pm_control_nop, NULL, NULL,\
|
||||
init_adc, NULL, NULL, NULL, \
|
||||
POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
&adc_nrfx_driver_api);
|
||||
|
|
|
@ -429,7 +429,7 @@ static const struct adc_driver_api adc_nrfx_driver_api = {
|
|||
"multiple instances not supported"); \
|
||||
DEVICE_DT_INST_DEFINE(0, \
|
||||
init_saadc, \
|
||||
device_pm_control_nop, \
|
||||
NULL, \
|
||||
NULL, \
|
||||
NULL, \
|
||||
POST_KERNEL, \
|
||||
|
|
|
@ -602,7 +602,7 @@ do { \
|
|||
ADC_CONTEXT_INIT_LOCK(adc_sam_data_##n, ctx), \
|
||||
ADC_CONTEXT_INIT_SYNC(adc_sam_data_##n, ctx), \
|
||||
}; \
|
||||
DEVICE_DT_INST_DEFINE(n, adc_sam0_init, device_pm_control_nop, \
|
||||
DEVICE_DT_INST_DEFINE(n, adc_sam0_init, NULL, \
|
||||
&adc_sam_data_##n, \
|
||||
&adc_sam_cfg_##n, POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
|
|
|
@ -365,7 +365,7 @@ static void adc_sam_isr(const struct device *dev)
|
|||
ADC_CONTEXT_INIT_SYNC(adc##n##_sam_data, ctx), \
|
||||
}; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(n, adc_sam_init, device_pm_control_nop, \
|
||||
DEVICE_DT_INST_DEFINE(n, adc_sam_init, NULL, \
|
||||
&adc##n##_sam_data, \
|
||||
&adc##n##_sam_cfg, POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
|
|
|
@ -785,7 +785,7 @@ static struct adc_stm32_data adc_stm32_data_##index = { \
|
|||
}; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(index, \
|
||||
&adc_stm32_init, device_pm_control_nop, \
|
||||
&adc_stm32_init, NULL, \
|
||||
&adc_stm32_data_##index, &adc_stm32_cfg_##index, \
|
||||
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, \
|
||||
&api_stm32_driver_api); \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue