forked from kofal.net/zmk
refactor: Move away from deprecated PM callback.
This commit is contained in:
committed by
Pete Johanson
parent
bf2fc68070
commit
4df83a9c0d
@@ -176,10 +176,9 @@ static int behavior_caps_word_init(const struct device *dev) {
|
||||
.continuations = {UTIL_LISTIFY(DT_INST_PROP_LEN(n, continue_list), BREAK_ITEM, n)}, \
|
||||
.continuations_count = DT_INST_PROP_LEN(n, continue_list), \
|
||||
}; \
|
||||
DEVICE_DT_INST_DEFINE(n, behavior_caps_word_init, device_pm_control_nop, \
|
||||
&behavior_caps_word_data_##n, &behavior_caps_word_config_##n, \
|
||||
APPLICATION, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, \
|
||||
&behavior_caps_word_driver_api);
|
||||
DEVICE_DT_INST_DEFINE(n, behavior_caps_word_init, NULL, &behavior_caps_word_data_##n, \
|
||||
&behavior_caps_word_config_##n, APPLICATION, \
|
||||
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT, &behavior_caps_word_driver_api);
|
||||
|
||||
DT_INST_FOREACH_STATUS_OKAY(KP_INST)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user