drivers: i2c: 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 11:03:29 +02:00 committed by Anas Nashif
parent 1b5542056b
commit a8245f78a1
27 changed files with 28 additions and 28 deletions

View file

@ -382,7 +382,7 @@ static const struct i2c_cc32xx_config i2c_cc32xx_config = {
static struct i2c_cc32xx_data i2c_cc32xx_data;
DEVICE_DT_INST_DEFINE(0, &i2c_cc32xx_init, device_pm_control_nop,
DEVICE_DT_INST_DEFINE(0, &i2c_cc32xx_init, NULL,
&i2c_cc32xx_data, &i2c_cc32xx_config,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&i2c_cc32xx_driver_api);

View file

@ -727,7 +727,7 @@ static int i2c_dw_initialize(const struct device *dev)
I2C_DW_INIT_PCIE(n) \
}; \
static struct i2c_dw_dev_config i2c_##n##_runtime; \
DEVICE_DT_INST_DEFINE(n, &i2c_dw_initialize, device_pm_control_nop, \
DEVICE_DT_INST_DEFINE(n, &i2c_dw_initialize, NULL, \
&i2c_##n##_runtime, &i2c_config_dw_##n, \
POST_KERNEL, CONFIG_I2C_INIT_PRIORITY, \
&funcs); \

View file

@ -145,7 +145,7 @@ static struct i2c_driver_api i2c_emul_api = {
static struct i2c_emul_data i2c_emul_data_##n; \
DEVICE_DT_INST_DEFINE(n, \
i2c_emul_init, \
device_pm_control_nop, \
NULL, \
&i2c_emul_data_##n, \
&i2c_emul_cfg_##n, \
POST_KERNEL, \

View file

@ -614,7 +614,7 @@ static const struct i2c_esp32_config i2c_esp32_config_0 = {
static struct i2c_esp32_data i2c_esp32_data_0;
DEVICE_DT_INST_DEFINE(0, &i2c_esp32_init, device_pm_control_nop,
DEVICE_DT_INST_DEFINE(0, &i2c_esp32_init, NULL,
&i2c_esp32_data_0, &i2c_esp32_config_0,
POST_KERNEL, CONFIG_I2C_INIT_PRIORITY,
&i2c_esp32_driver_api);
@ -658,7 +658,7 @@ static const struct i2c_esp32_config i2c_esp32_config_1 = {
static struct i2c_esp32_data i2c_esp32_data_1;
DEVICE_DT_INST_DEFINE(1, &i2c_esp32_init, device_pm_control_nop,
DEVICE_DT_INST_DEFINE(1, &i2c_esp32_init, NULL,
&i2c_esp32_data_1, &i2c_esp32_config_1,
POST_KERNEL, CONFIG_I2C_INIT_PRIORITY,
&i2c_esp32_driver_api);

View file

@ -227,7 +227,7 @@ static const struct i2c_gecko_config i2c_gecko_config_##idx = { \
static struct i2c_gecko_data i2c_gecko_data_##idx; \
\
DEVICE_DT_INST_DEFINE(idx, &i2c_gecko_init, \
device_pm_control_nop, \
NULL, \
&i2c_gecko_data_##idx, &i2c_gecko_config_##idx, \
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
&i2c_gecko_driver_api);

View file

@ -184,7 +184,7 @@ static const struct i2c_gpio_config i2c_gpio_dev_cfg_##_num = { \
\
DEVICE_DT_INST_DEFINE(_num, \
i2c_gpio_init, \
device_pm_control_nop, \
NULL, \
&i2c_gpio_dev_data_##_num, \
&i2c_gpio_dev_cfg_##_num, \
POST_KERNEL, CONFIG_I2C_INIT_PRIORITY, &api);

View file

@ -373,7 +373,7 @@ static const struct i2c_driver_api i2c_imx_driver_api = {
\
DEVICE_DT_INST_DEFINE(n, \
&i2c_imx_init, \
device_pm_control_nop, \
NULL, \
&i2c_imx_data_##n, &i2c_imx_config_##n, \
POST_KERNEL, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \

View file

@ -874,7 +874,7 @@ static const struct i2c_driver_api i2c_it8xxx2_driver_api = {
static struct i2c_it8xxx2_data i2c_it8xxx2_data_##idx; \
\
DEVICE_DT_INST_DEFINE(idx, \
&i2c_it8xxx2_init, &device_pm_control_nop, \
&i2c_it8xxx2_init, &NULL, \
&i2c_it8xxx2_data_##idx, \
&i2c_it8xxx2_cfg_##idx, POST_KERNEL, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \

View file

@ -126,7 +126,7 @@ static const struct i2c_driver_api i2c_litex_driver_api = {
\
DEVICE_DT_INST_DEFINE(n, \
i2c_litex_init, \
device_pm_control_nop, \
NULL, \
&i2c_bitbang_##n, \
&i2c_litex_cfg_##n, \
POST_KERNEL, \

View file

@ -349,7 +349,7 @@ static const struct i2c_stm32_config i2c_stm32_cfg_##name = { \
static struct i2c_stm32_data i2c_stm32_dev_data_##name; \
\
DEVICE_DT_DEFINE(DT_NODELABEL(name), &i2c_stm32_init, \
device_pm_control_nop, &i2c_stm32_dev_data_##name, \
NULL, &i2c_stm32_dev_data_##name, \
&i2c_stm32_cfg_##name, \
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
&api_funcs); \

View file

@ -403,7 +403,7 @@ static struct lpc11u6x_i2c_data i2c_data_##idx; \
\
DEVICE_DT_INST_DEFINE(idx, \
&lpc11u6x_i2c_init, \
device_pm_control_nop, \
NULL, \
&i2c_data_##idx, &i2c_cfg_##idx, \
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_OBJECTS, \
&i2c_api); \

View file

@ -654,7 +654,7 @@ static int i2c_xec_init(const struct device *dev)
.girq_bit = DT_INST_PROP(n, girq_bit), \
.irq_config_func = i2c_xec_irq_config_func_##n, \
}; \
DEVICE_DT_INST_DEFINE(n, &i2c_xec_init, device_pm_control_nop, \
DEVICE_DT_INST_DEFINE(n, &i2c_xec_init, NULL, \
&i2c_xec_data_##n, &i2c_xec_config_##n, \
POST_KERNEL, CONFIG_I2C_INIT_PRIORITY, \
&i2c_xec_driver_api); \

View file

@ -231,7 +231,7 @@ static const struct i2c_driver_api i2c_mcux_driver_api = {
static struct i2c_mcux_data i2c_mcux_data_ ## n; \
\
DEVICE_DT_INST_DEFINE(n, \
&i2c_mcux_init, device_pm_control_nop, \
&i2c_mcux_init, NULL, \
&i2c_mcux_data_ ## n, \
&i2c_mcux_config_ ## n, POST_KERNEL, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \

View file

@ -227,7 +227,7 @@ static const struct i2c_driver_api mcux_flexcomm_driver_api = {
static struct mcux_flexcomm_data mcux_flexcomm_data_##id; \
DEVICE_DT_INST_DEFINE(id, \
&mcux_flexcomm_init, \
device_pm_control_nop, \
NULL, \
&mcux_flexcomm_data_##id, \
&mcux_flexcomm_config_##id, \
POST_KERNEL, \

View file

@ -260,7 +260,7 @@ static const struct i2c_driver_api mcux_lpi2c_driver_api = {
\
static struct mcux_lpi2c_data mcux_lpi2c_data_##n; \
\
DEVICE_DT_INST_DEFINE(n, &mcux_lpi2c_init, device_pm_control_nop,\
DEVICE_DT_INST_DEFINE(n, &mcux_lpi2c_init, NULL, \
&mcux_lpi2c_data_##n, \
&mcux_lpi2c_config_##n, POST_KERNEL, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \

View file

@ -165,7 +165,7 @@ static struct i2c_nios2_config i2c_nios2_cfg = {
},
};
DEVICE_DT_INST_DEFINE(0, &i2c_nios2_init, device_pm_control_nop,
DEVICE_DT_INST_DEFINE(0, &i2c_nios2_init, NULL,
NULL, &i2c_nios2_cfg,
POST_KERNEL, CONFIG_KERNEL_INIT_PRIORITY_DEVICE,
&i2c_nios2_driver_api);

View file

@ -920,7 +920,7 @@ static int i2c_ctrl_init(const struct device *dev)
\
DEVICE_DT_INST_DEFINE(inst, \
NPCX_I2C_CTRL_INIT_FUNC(inst), \
device_pm_control_nop, \
NULL, \
&i2c_ctrl_data_##inst, &i2c_ctrl_cfg_##inst, \
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
NULL); \

View file

@ -174,7 +174,7 @@ static const struct i2c_driver_api i2c_port_npcx_driver_api = {
\
DEVICE_DT_INST_DEFINE(inst, \
NPCX_I2C_PORT_INIT_FUNC(inst), \
device_pm_control_nop, \
NULL, \
&i2c_npcx_port_data_##inst, \
&i2c_npcx_port_cfg_##inst, \
PRE_KERNEL_1, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \

View file

@ -266,7 +266,7 @@ static const struct i2c_driver_api rv32m1_lpi2c_driver_api = {
}; \
DEVICE_DT_INST_DEFINE(id, \
&rv32m1_lpi2c_init, \
device_pm_control_nop, \
NULL, \
&rv32m1_lpi2c_##id##_data, \
&rv32m1_lpi2c_##id##_config, \
POST_KERNEL, CONFIG_I2C_INIT_PRIORITY, \

View file

@ -789,7 +789,7 @@ static const struct i2c_sam0_dev_config i2c_sam0_dev_config_##n = { \
static struct i2c_sam0_dev_data i2c_sam0_dev_data_##n; \
DEVICE_DT_INST_DEFINE(n, \
&i2c_sam0_initialize, \
device_pm_control_nop, \
NULL, \
&i2c_sam0_dev_data_##n, \
&i2c_sam0_dev_config_##n, POST_KERNEL, \
CONFIG_I2C_INIT_PRIORITY, \

View file

@ -632,7 +632,7 @@ static const struct i2c_driver_api i2c_sam_twim_driver_api = {
static struct i2c_sam_twim_dev_data i2c##n##_sam_data; \
\
DEVICE_DT_INST_DEFINE(n, &i2c_sam_twim_initialize, \
device_pm_control_nop, \
NULL, \
&i2c##n##_sam_data, &i2c##n##_sam_config, \
POST_KERNEL, CONFIG_I2C_INIT_PRIORITY, \
&i2c_sam_twim_driver_api)

View file

@ -362,7 +362,7 @@ static const struct i2c_driver_api i2c_sam_twi_driver_api = {
static struct i2c_sam_twi_dev_data i2c##n##_sam_data; \
\
DEVICE_DT_INST_DEFINE(n, &i2c_sam_twi_initialize, \
device_pm_control_nop, \
NULL, \
&i2c##n##_sam_data, &i2c##n##_sam_config, \
POST_KERNEL, CONFIG_I2C_INIT_PRIORITY, \
&i2c_sam_twi_driver_api);

View file

@ -349,7 +349,7 @@ static const struct i2c_driver_api i2c_sam_twihs_driver_api = {
static struct i2c_sam_twihs_dev_data i2c##n##_sam_data; \
\
DEVICE_DT_INST_DEFINE(n, &i2c_sam_twihs_initialize, \
device_pm_control_nop, \
NULL, \
&i2c##n##_sam_data, &i2c##n##_sam_config, \
POST_KERNEL, CONFIG_I2C_INIT_PRIORITY, \
&i2c_sam_twihs_driver_api);

View file

@ -118,7 +118,7 @@ static const struct i2c_sbcon_config i2c_sbcon_dev_cfg_##_num = { \
\
DEVICE_DT_INST_DEFINE(_num, \
i2c_sbcon_init, \
device_pm_control_nop, \
NULL, \
&i2c_sbcon_dev_data_##_num, \
&i2c_sbcon_dev_cfg_##_num, \
PRE_KERNEL_2, CONFIG_I2C_INIT_PRIORITY, &api);

View file

@ -331,7 +331,7 @@ static struct i2c_driver_api i2c_sifive_api = {
}; \
DEVICE_DT_INST_DEFINE(n, \
i2c_sifive_init, \
device_pm_control_nop, \
NULL, \
NULL, \
&i2c_sifive_cfg_##n, \
POST_KERNEL, \

View file

@ -38,7 +38,7 @@ static int vnd_i2c_init(const struct device *dev)
}
#define VND_I2C_INIT(n) \
DEVICE_DT_INST_DEFINE(n, &vnd_i2c_init, device_pm_control_nop, \
DEVICE_DT_INST_DEFINE(n, &vnd_i2c_init, NULL, \
NULL, NULL, POST_KERNEL, \
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, \
&vnd_i2c_api);

View file

@ -222,7 +222,7 @@ static int i2c_eeprom_slave_init(const struct device *dev)
\
DEVICE_DT_INST_DEFINE(inst, \
&i2c_eeprom_slave_init, \
device_pm_control_nop, \
NULL, \
&i2c_eeprom_slave_##inst##_dev_data, \
&i2c_eeprom_slave_##inst##_cfg, \
POST_KERNEL, \