drivers: spi: 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
a4081b66d8
commit
90118b265f
|
@ -557,7 +557,7 @@ const struct spi_dw_config spi_dw_config_0 = {
|
|||
.op_modes = SPI_CTX_RUNTIME_OP_MODE_MASTER
|
||||
};
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, spi_dw_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, spi_dw_init, NULL,
|
||||
&spi_dw_data_port_0, &spi_dw_config_0,
|
||||
POST_KERNEL, CONFIG_SPI_INIT_PRIORITY,
|
||||
&dw_spi_api);
|
||||
|
@ -620,7 +620,7 @@ static const struct spi_dw_config spi_dw_config_1 = {
|
|||
.op_modes = SPI_CTX_RUNTIME_OP_MODE_MASTER
|
||||
};
|
||||
|
||||
DEVICE_DT_INST_DEFINE(1, spi_dw_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(1, spi_dw_init, NULL,
|
||||
&spi_dw_data_port_1, &spi_dw_config_1,
|
||||
POST_KERNEL, CONFIG_SPI_INIT_PRIORITY,
|
||||
&dw_spi_api);
|
||||
|
@ -683,7 +683,7 @@ static const struct spi_dw_config spi_dw_config_2 = {
|
|||
.op_modes = SPI_CTX_RUNTIME_OP_MODE_MASTER
|
||||
};
|
||||
|
||||
DEVICE_DT_INST_DEFINE(2, spi_dw_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(2, spi_dw_init, NULL,
|
||||
&spi_dw_data_port_2, &spi_dw_config_2,
|
||||
POST_KERNEL, CONFIG_SPI_INIT_PRIORITY,
|
||||
&dw_spi_api);
|
||||
|
@ -746,7 +746,7 @@ static const struct spi_dw_config spi_dw_config_3 = {
|
|||
.op_modes = SPI_CTX_RUNTIME_OP_MODE_MASTER
|
||||
};
|
||||
|
||||
DEVICE_DT_INST_DEFINE(3, spi_dw_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(3, spi_dw_init, NULL,
|
||||
&spi_dw_data_port_3, &spi_dw_config_3,
|
||||
POST_KERNEL, CONFIG_SPI_INIT_PRIORITY,
|
||||
&dw_spi_api);
|
||||
|
|
|
@ -132,7 +132,7 @@ static struct spi_driver_api spi_emul_api = {
|
|||
static struct spi_emul_data spi_emul_data_##n; \
|
||||
DEVICE_DT_INST_DEFINE(n, \
|
||||
spi_emul_init, \
|
||||
device_pm_control_nop, \
|
||||
NULL, \
|
||||
&spi_emul_data_##n, \
|
||||
&spi_emul_cfg_##n, \
|
||||
POST_KERNEL, \
|
||||
|
|
|
@ -311,7 +311,7 @@ static struct spi_driver_api spi_gecko_api = {
|
|||
}; \
|
||||
DEVICE_DT_INST_DEFINE(n, \
|
||||
spi_gecko_init, \
|
||||
device_pm_control_nop, \
|
||||
NULL, \
|
||||
&spi_gecko_data_##n, \
|
||||
&spi_gecko_cfg_##n, \
|
||||
POST_KERNEL, \
|
||||
|
|
|
@ -177,7 +177,7 @@ static struct spi_driver_api spi_litespi_api = {
|
|||
}; \
|
||||
DEVICE_DT_INST_DEFINE(n, \
|
||||
spi_litespi_init, \
|
||||
device_pm_control_nop, \
|
||||
NULL, \
|
||||
&spi_litespi_data_##n, \
|
||||
&spi_litespi_cfg_##n, \
|
||||
POST_KERNEL, \
|
||||
|
|
|
@ -931,7 +931,7 @@ static struct spi_stm32_data spi_stm32_dev_data_##id = { \
|
|||
SPI_DMA_STATUS_SEM(id) \
|
||||
}; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(id, &spi_stm32_init, device_pm_control_nop, \
|
||||
DEVICE_DT_INST_DEFINE(id, &spi_stm32_init, NULL, \
|
||||
&spi_stm32_dev_data_##id, &spi_stm32_cfg_##id, \
|
||||
POST_KERNEL, CONFIG_SPI_INIT_PRIORITY, \
|
||||
&api_funcs); \
|
||||
|
|
|
@ -306,7 +306,7 @@ static const struct spi_driver_api spi_mcux_driver_api = {
|
|||
}; \
|
||||
DEVICE_DT_INST_DEFINE(id, \
|
||||
&spi_mcux_init, \
|
||||
device_pm_control_nop, \
|
||||
NULL, \
|
||||
&spi_mcux_data_##id, \
|
||||
&spi_mcux_config_##id, \
|
||||
POST_KERNEL, \
|
||||
|
|
|
@ -766,7 +766,7 @@ static void spi_mcux_config_func_##id(const struct device *dev) \
|
|||
}; \
|
||||
DEVICE_DT_INST_DEFINE(id, \
|
||||
&spi_mcux_init, \
|
||||
device_pm_control_nop, \
|
||||
NULL, \
|
||||
&spi_mcux_data_##id, \
|
||||
&spi_mcux_config_##id, \
|
||||
POST_KERNEL, \
|
||||
|
|
|
@ -303,7 +303,7 @@ static const struct spi_driver_api spi_mcux_driver_api = {
|
|||
SPI_CONTEXT_INIT_SYNC(spi_mcux_data_##n, ctx), \
|
||||
}; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(n, &spi_mcux_init, device_pm_control_nop, \
|
||||
DEVICE_DT_INST_DEFINE(n, &spi_mcux_init, NULL, \
|
||||
&spi_mcux_data_##n, \
|
||||
&spi_mcux_config_##n, POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
|
|
|
@ -289,7 +289,7 @@ static int init_spis(const struct device *dev,
|
|||
}; \
|
||||
DEVICE_DT_DEFINE(SPIS(idx), \
|
||||
spi_##idx##_init, \
|
||||
device_pm_control_nop, \
|
||||
NULL, \
|
||||
&spi_##idx##_data, \
|
||||
&spi_##idx##z_config, \
|
||||
POST_KERNEL, \
|
||||
|
|
|
@ -216,7 +216,7 @@ int spi_oc_simple_init(const struct device *dev)
|
|||
\
|
||||
DEVICE_DT_INST_DEFINE(inst, \
|
||||
spi_oc_simple_init, \
|
||||
device_pm_control_nop, \
|
||||
NULL, \
|
||||
&spi_oc_simple_data_##inst, \
|
||||
&spi_oc_simple_cfg_##inst, \
|
||||
POST_KERNEL, \
|
||||
|
|
|
@ -295,7 +295,7 @@ static const struct spi_driver_api spi_mcux_driver_api = {
|
|||
SPI_CONTEXT_INIT_SYNC(spi_mcux_data_##n, ctx), \
|
||||
}; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(n, &spi_mcux_init, device_pm_control_nop, \
|
||||
DEVICE_DT_INST_DEFINE(n, &spi_mcux_init, NULL, \
|
||||
&spi_mcux_data_##n, \
|
||||
&spi_mcux_config_##n, \
|
||||
POST_KERNEL, \
|
||||
|
|
|
@ -467,7 +467,7 @@ static const struct spi_driver_api spi_sam_driver_api = {
|
|||
SPI_CONTEXT_INIT_LOCK(spi_sam_dev_data_##n, ctx), \
|
||||
SPI_CONTEXT_INIT_SYNC(spi_sam_dev_data_##n, ctx), \
|
||||
}; \
|
||||
DEVICE_DT_INST_DEFINE(n, &spi_sam_init, device_pm_control_nop, \
|
||||
DEVICE_DT_INST_DEFINE(n, &spi_sam_init, NULL, \
|
||||
&spi_sam_dev_data_##n, \
|
||||
&spi_sam_config_##n, POST_KERNEL, \
|
||||
CONFIG_SPI_INIT_PRIORITY, &spi_sam_driver_api);
|
||||
|
|
|
@ -764,7 +764,7 @@ static const struct spi_sam0_config spi_sam0_config_##n = { \
|
|||
SPI_CONTEXT_INIT_LOCK(spi_sam0_dev_data_##n, ctx), \
|
||||
SPI_CONTEXT_INIT_SYNC(spi_sam0_dev_data_##n, ctx), \
|
||||
}; \
|
||||
DEVICE_DT_INST_DEFINE(n, &spi_sam0_init, device_pm_control_nop, \
|
||||
DEVICE_DT_INST_DEFINE(n, &spi_sam0_init, NULL, \
|
||||
&spi_sam0_dev_data_##n, \
|
||||
&spi_sam0_config_##n, POST_KERNEL, \
|
||||
CONFIG_SPI_INIT_PRIORITY, \
|
||||
|
|
|
@ -250,7 +250,7 @@ static struct spi_driver_api spi_sifive_api = {
|
|||
}; \
|
||||
DEVICE_DT_INST_DEFINE(n, \
|
||||
spi_sifive_init, \
|
||||
device_pm_control_nop, \
|
||||
NULL, \
|
||||
&spi_sifive_data_##n, \
|
||||
&spi_sifive_cfg_##n, \
|
||||
POST_KERNEL, \
|
||||
|
|
|
@ -53,7 +53,7 @@ static int vnd_spi_init(const struct device *dev)
|
|||
}
|
||||
|
||||
#define VND_SPI_INIT(n) \
|
||||
DEVICE_DT_INST_DEFINE(n, &vnd_spi_init, device_pm_control_nop, \
|
||||
DEVICE_DT_INST_DEFINE(n, &vnd_spi_init, NULL, \
|
||||
NULL, NULL, POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
&vnd_spi_api);
|
||||
|
|
|
@ -675,7 +675,7 @@ static struct spi_qmspi_data spi_qmspi_0_dev_data = {
|
|||
};
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0,
|
||||
&qmspi_init, device_pm_control_nop, &spi_qmspi_0_dev_data,
|
||||
&qmspi_init, NULL, &spi_qmspi_0_dev_data,
|
||||
&spi_qmspi_0_config, POST_KERNEL,
|
||||
CONFIG_SPI_INIT_PRIORITY, &spi_qmspi_driver_api);
|
||||
|
||||
|
|
|
@ -478,7 +478,7 @@ static const struct spi_driver_api xlnx_quadspi_driver_api = {
|
|||
}; \
|
||||
\
|
||||
DEVICE_DT_INST_DEFINE(n, &xlnx_quadspi_init, \
|
||||
device_pm_control_nop, \
|
||||
NULL, \
|
||||
&xlnx_quadspi_data_##n, \
|
||||
&xlnx_quadspi_config_##n, POST_KERNEL, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
|
||||
|
|
Loading…
Reference in a new issue