Lines Matching refs:index
477 #define MAX17055_INIT(index) \ argument
478 static struct max17055_data max17055_driver_##index; \
480 static const struct max17055_config max17055_config_##index = { \
481 .i2c = I2C_DT_SPEC_INST_GET(index), \
482 .design_capacity = DT_INST_PROP(index, design_capacity), \
483 .design_voltage = DT_INST_PROP(index, design_voltage), \
484 .desired_charging_current = DT_INST_PROP(index, desired_charging_current), \
485 .desired_voltage = DT_INST_PROP(index, desired_voltage), \
486 .i_chg_term = DT_INST_PROP(index, i_chg_term), \
487 .rsense_mohms = DT_INST_PROP(index, rsense_mohms), \
488 .v_empty = DT_INST_PROP(index, v_empty), \
491 SENSOR_DEVICE_DT_INST_DEFINE(index, &max17055_gauge_init, \
493 &max17055_driver_##index, \
494 &max17055_config_##index, POST_KERNEL, \