drivers: dac: 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:
Gerard Marull-Paretas 2021-04-28 10:29:41 +02:00 committed by Anas Nashif
parent e1fc809419
commit ed97e6d106
6 changed files with 6 additions and 6 deletions

View file

@ -425,7 +425,7 @@ static const struct dac_driver_api dacx0508_driver_api = {
.gain[7] = DT_PROP(INST_DT_DACX0508(n, t), channel7_gain), \
}; \
DEVICE_DT_DEFINE(INST_DT_DACX0508(n, t), \
&dacx0508_init, device_pm_control_nop, \
&dacx0508_init, NULL, \
&dac##t##_data_##n, \
&dac##t##_config_##n, POST_KERNEL, \
CONFIG_DAC_DACX0508_INIT_PRIORITY, \

View file

@ -255,7 +255,7 @@ static const struct dac_driver_api dacx3608_driver_api = {
.resolution = res, \
}; \
DEVICE_DT_DEFINE(INST_DT_DACX3608(n, t), \
&dacx3608_init, device_pm_control_nop, \
&dacx3608_init, NULL, \
&dac##t##_data_##n, \
&dac##t##_config_##n, POST_KERNEL, \
CONFIG_DAC_DACX3608_INIT_PRIORITY, \

View file

@ -105,7 +105,7 @@ static const struct dac_driver_api mcux_dac_driver_api = {
.low_power = DT_INST_PROP(n, low_power_mode), \
}; \
\
DEVICE_DT_INST_DEFINE(n, mcux_dac_init, device_pm_control_nop, \
DEVICE_DT_INST_DEFINE(n, mcux_dac_init, NULL, \
&mcux_dac_data_##n, \
&mcux_dac_config_##n, \
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,\

View file

@ -111,7 +111,7 @@ static const struct dac_driver_api mcux_dac32_driver_api = {
.low_power = DT_INST_PROP(n, low_power_mode), \
}; \
\
DEVICE_DT_INST_DEFINE(n, mcux_dac32_init, device_pm_control_nop,\
DEVICE_DT_INST_DEFINE(n, mcux_dac32_init, NULL, \
&mcux_dac32_data_##n, \
&mcux_dac32_config_##n, \
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,\

View file

@ -106,7 +106,7 @@ static const struct dac_driver_api api_sam0_driver_api = {
.refsel = UTIL_CAT(SAM0_DAC_REFSEL_, SAM0_DAC_REFSEL(n)), \
}; \
\
DEVICE_DT_INST_DEFINE(n, &dac_sam0_init, device_pm_control_nop, NULL, \
DEVICE_DT_INST_DEFINE(n, &dac_sam0_init, NULL, NULL, \
&dac_sam0_cfg_##n, POST_KERNEL, \
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, \
&api_sam0_driver_api)

View file

@ -165,7 +165,7 @@ static struct dac_stm32_data dac_stm32_data_##index = { \
.channel_count = STM32_CHANNEL_COUNT \
}; \
\
DEVICE_DT_INST_DEFINE(index, &dac_stm32_init, device_pm_control_nop, \
DEVICE_DT_INST_DEFINE(index, &dac_stm32_init, NULL, \
&dac_stm32_data_##index, \
&dac_stm32_cfg_##index, POST_KERNEL, \
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, \