Lines Matching refs:index
855 #define BQ274XX_INT_CFG(index) \ argument
856 .int_gpios = GPIO_DT_SPEC_INST_GET(index, int_gpios),
857 #define PM_BQ274XX_DT_INST_DEFINE(index, bq274xx_pm_action) \ argument
858 PM_DEVICE_DT_INST_DEFINE(index, bq274xx_pm_action)
859 #define PM_BQ274XX_DT_INST_GET(index) PM_DEVICE_DT_INST_GET(index) argument
861 #define BQ274XX_INT_CFG(index) argument
862 #define PM_BQ274XX_DT_INST_DEFINE(index, bq274xx_pm_action) argument
863 #define PM_BQ274XX_DT_INST_GET(index) NULL argument
866 #define BQ274XX_INIT(index) \ argument
867 static struct bq274xx_data bq274xx_driver_##index; \
869 static const struct bq274xx_config bq274xx_config_##index = { \
870 .i2c = I2C_DT_SPEC_INST_GET(index), \
871 BQ274XX_INT_CFG(index) \
872 .design_voltage = DT_INST_PROP(index, design_voltage), \
873 .design_capacity = DT_INST_PROP(index, design_capacity), \
874 .taper_current = DT_INST_PROP(index, taper_current), \
875 .terminate_voltage = DT_INST_PROP(index, terminate_voltage), \
876 .chemistry_id = DT_INST_PROP_OR(index, chemistry_id, 0), \
877 .lazy_loading = DT_INST_PROP(index, zephyr_lazy_load), \
880 PM_BQ274XX_DT_INST_DEFINE(index, bq274xx_pm_action); \
882 SENSOR_DEVICE_DT_INST_DEFINE(index, &bq274xx_gauge_init, \
883 PM_BQ274XX_DT_INST_GET(index), \
884 &bq274xx_driver_##index, \
885 &bq274xx_config_##index, POST_KERNEL, \