Lines Matching full:inst
98 #define INPUT_DOUBLE_TAP_DEFINE(inst) \ argument
99 BUILD_ASSERT(DT_INST_PROP_LEN(inst, input_codes) == \
100 DT_INST_PROP_LEN(inst, double_tap_codes)); \
102 INPUT_CALLBACK_DEFINE_NAMED(DEVICE_DT_GET_OR_NULL(DT_INST_PHANDLE(inst, input)), \
103 double_tap_cb, (void *)DEVICE_DT_INST_GET(inst), \
104 double_tap_cb_##inst); \
106 static const uint16_t double_tap_input_codes_##inst[] = DT_INST_PROP(inst, input_codes); \
108 static const uint16_t double_tap_codes_##inst[] = DT_INST_PROP(inst, double_tap_codes); \
111 double_tap_data_entries_##inst[DT_INST_PROP_LEN(inst, input_codes)]; \
113 static const struct double_tap_config double_tap_config_##inst = { \
114 .input_dev = DEVICE_DT_GET_OR_NULL(DT_INST_PHANDLE(inst, input)), \
115 .entries = double_tap_data_entries_##inst, \
116 .input_codes = double_tap_input_codes_##inst, \
117 .double_tap_codes = double_tap_codes_##inst, \
118 .num_codes = DT_INST_PROP_LEN(inst, input_codes), \
119 .double_tap_delay_ms = DT_INST_PROP(inst, double_tap_delay_ms), \
122 DEVICE_DT_INST_DEFINE(inst, double_tap_init, NULL, NULL, &double_tap_config_##inst, \