Lines Matching refs:index
428 #define ICM42605_DEFINE_CONFIG(index) \ argument
429 static const struct icm42605_config icm42605_cfg_##index = { \
430 .spi = SPI_DT_SPEC_INST_GET(index, \
437 .gpio_int = GPIO_DT_SPEC_INST_GET(index, int_gpios), \
438 .accel_hz = DT_INST_PROP(index, accel_hz), \
439 .gyro_hz = DT_INST_PROP(index, gyro_hz), \
440 .accel_fs = DT_INST_ENUM_IDX(index, accel_fs), \
441 .gyro_fs = DT_INST_ENUM_IDX(index, gyro_fs), \
444 #define ICM42605_INIT(index) \ argument
445 ICM42605_DEFINE_CONFIG(index); \
446 static struct icm42605_data icm42605_driver_##index; \
447 SENSOR_DEVICE_DT_INST_DEFINE(index, icm42605_init, \
449 &icm42605_driver_##index, \
450 &icm42605_cfg_##index, POST_KERNEL, \