File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,8 @@ static int caps_word_keycode_state_changed_listener(const zmk_event_t *eh);
84
84
ZMK_LISTENER (behavior_caps_word , caps_word_keycode_state_changed_listener );
85
85
ZMK_SUBSCRIPTION (behavior_caps_word , zmk_keycode_state_changed );
86
86
87
- static const struct device * devs [] = {DT_INST_FOREACH_STATUS_OKAY (DEVICE_DT_INST_GET )};
87
+ #define GET_DEV (inst ) DEVICE_DT_INST_GET(inst),
88
+ static const struct device * devs [] = {DT_INST_FOREACH_STATUS_OKAY (GET_DEV )};
88
89
89
90
static bool caps_word_is_caps_includelist (const struct behavior_caps_word_config * config ,
90
91
uint16_t usage_page , uint8_t usage_id ,
Original file line number Diff line number Diff line change @@ -77,7 +77,8 @@ static int key_repeat_keycode_state_changed_listener(const zmk_event_t *eh);
77
77
ZMK_LISTENER (behavior_key_repeat , key_repeat_keycode_state_changed_listener );
78
78
ZMK_SUBSCRIPTION (behavior_key_repeat , zmk_keycode_state_changed );
79
79
80
- static const struct device * devs [] = {DT_INST_FOREACH_STATUS_OKAY (DEVICE_DT_INST_GET )};
80
+ #define GET_DEV (inst ) DEVICE_DT_INST_GET(inst),
81
+ static const struct device * devs [] = {DT_INST_FOREACH_STATUS_OKAY (GET_DEV )};
81
82
82
83
static int key_repeat_keycode_state_changed_listener (const zmk_event_t * eh ) {
83
84
struct zmk_keycode_state_changed * ev = as_zmk_keycode_state_changed (eh );
You can’t perform that action at this time.
0 commit comments