Lines Matching refs:_num
552 #define DEFINE_TMAG5170(_num) \ argument
553 static struct tmag5170_data tmag5170_data_##_num; \
554 static const struct tmag5170_dev_config tmag5170_config_##_num = { \
555 .bus = SPI_DT_SPEC_INST_GET(_num, \
560 .magnetic_channels = DT_INST_ENUM_IDX(_num, magnetic_channels), \
561 .x_range = DT_INST_ENUM_IDX(_num, x_range), \
562 .y_range = DT_INST_ENUM_IDX(_num, y_range), \
563 .z_range = DT_INST_ENUM_IDX(_num, z_range), \
564 .operating_mode = DT_INST_PROP(_num, operating_mode), \
565 .oversampling = DT_INST_ENUM_IDX(_num, oversampling), \
566 .tempeature_measurement = DT_INST_PROP(_num, enable_temperature_channel), \
567 .magnet_type = DT_INST_ENUM_IDX(_num, magnet_type), \
568 .angle_measurement = DT_INST_ENUM_IDX(_num, angle_measurement), \
569 .disable_temperature_oversampling = DT_INST_PROP(_num, \
571 .sleep_time = DT_INST_ENUM_IDX(_num, sleep_time), \
573 (.int_gpio = GPIO_DT_SPEC_INST_GET_OR(_num, int_gpios, { 0 }),)) \
575 PM_DEVICE_DT_INST_DEFINE(_num, tmag5170_pm_action); \
577 SENSOR_DEVICE_DT_INST_DEFINE(_num, \
579 PM_DEVICE_DT_INST_GET(_num), \
580 &tmag5170_data_##_num, \
581 &tmag5170_config_##_num, \