drivers: eeprom: 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
673b44ad30
commit
36b8f96ddc
5 changed files with 5 additions and 5 deletions
|
@ -659,7 +659,7 @@ static const struct eeprom_driver_api eeprom_at2x_api = {
|
|||
}; \
|
||||
static struct eeprom_at2x_data eeprom_at##t##_data_##n; \
|
||||
DEVICE_DT_DEFINE(INST_DT_AT2X(n, t), &eeprom_at2x_init, \
|
||||
device_pm_control_nop, &eeprom_at##t##_data_##n, \
|
||||
NULL, &eeprom_at##t##_data_##n, \
|
||||
&eeprom_at##t##_config_##n, POST_KERNEL, \
|
||||
CONFIG_EEPROM_AT2X_INIT_PRIORITY, \
|
||||
&eeprom_at2x_api)
|
||||
|
|
|
@ -808,7 +808,7 @@ static const struct eeprom_driver_api eeprom_emu_api = {
|
|||
}; \
|
||||
static struct eeprom_emu_data eeprom_emu_##n##_data; \
|
||||
DEVICE_DT_INST_DEFINE(n, &eeprom_emu_init, \
|
||||
device_pm_control_nop, &eeprom_emu_##n##_data, \
|
||||
NULL, &eeprom_emu_##n##_data, \
|
||||
&eeprom_emu_##n##_config, POST_KERNEL, \
|
||||
CONFIG_EEPROM_EMULATOR_INIT_PRIORITY, &eeprom_emu_api); \
|
||||
|
||||
|
|
|
@ -115,6 +115,6 @@ static const struct eeprom_lpc11u6x_config eeprom_config = {
|
|||
.size = DT_INST_PROP(0, size),
|
||||
};
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, &eeprom_lpc11u6x_init, device_pm_control_nop, NULL,
|
||||
DEVICE_DT_INST_DEFINE(0, &eeprom_lpc11u6x_init, NULL, NULL,
|
||||
&eeprom_config, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &eeprom_lpc11u6x_api);
|
||||
|
|
|
@ -267,7 +267,7 @@ static int eeprom_sim_init(const struct device *dev)
|
|||
return eeprom_mock_init(dev);
|
||||
}
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, &eeprom_sim_init, device_pm_control_nop,
|
||||
DEVICE_DT_INST_DEFINE(0, &eeprom_sim_init, NULL,
|
||||
NULL, &eeprom_sim_config_0, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &eeprom_sim_api);
|
||||
|
||||
|
|
|
@ -122,6 +122,6 @@ static const struct eeprom_stm32_config eeprom_config = {
|
|||
.size = DT_INST_REG_SIZE(0),
|
||||
};
|
||||
|
||||
DEVICE_DT_INST_DEFINE(0, &eeprom_stm32_init, device_pm_control_nop, NULL,
|
||||
DEVICE_DT_INST_DEFINE(0, &eeprom_stm32_init, NULL, NULL,
|
||||
&eeprom_config, POST_KERNEL,
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEVICE, &eeprom_stm32_api);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue