Lines Matching refs:index
1228 #define GROW_R502A_INIT(index) \ argument
1229 static struct grow_r502a_data grow_r502a_data_##index; \
1231 static struct grow_r502a_config grow_r502a_config_##index = { \
1232 .dev = DEVICE_DT_GET(DT_INST_BUS(index)), \
1233 .comm_addr = DT_INST_REG_ADDR(index), \
1235 (.vin_gpios = GPIO_DT_SPEC_INST_GET_OR(index, vin_gpios, {}), \
1236 .act_gpios = GPIO_DT_SPEC_INST_GET_OR(index, act_gpios, {}),)) \
1238 (.int_gpios = GPIO_DT_SPEC_INST_GET_OR(index, int_gpios, {}),)) \
1241 DEVICE_DT_INST_DEFINE(index, &grow_r502a_init, NULL, &grow_r502a_data_##index, \
1242 &grow_r502a_config_##index, POST_KERNEL, \
1245 #define GROW_R502A_LED_INIT(index) \ argument
1246 DEVICE_DT_INST_DEFINE(index, NULL, NULL, &grow_r502a_data_##index, \
1247 &grow_r502a_config_##index, POST_KERNEL, \