Lines Matching refs:chip_info
76 const struct ad5360_chip_info *chip_info; member
177 i = channel / st->chip_info->channels_per_group; in ad5360_get_channel_vref_index()
178 if (i >= st->chip_info->num_vrefs) in ad5360_get_channel_vref_index()
179 i = st->chip_info->num_vrefs - 1; in ad5360_get_channel_vref_index()
442 channels = kcalloc(st->chip_info->num_channels, in ad5360_alloc_channels()
448 for (i = 0; i < st->chip_info->num_channels; ++i) { in ad5360_alloc_channels()
449 channels[i] = st->chip_info->channel_template; in ad5360_alloc_channels()
476 st->chip_info = &ad5360_chip_info_tbl[type]; in ad5360_probe()
482 indio_dev->num_channels = st->chip_info->num_channels; in ad5360_probe()
492 for (i = 0; i < st->chip_info->num_vrefs; ++i) in ad5360_probe()
495 ret = devm_regulator_bulk_get(&st->spi->dev, st->chip_info->num_vrefs, in ad5360_probe()
502 ret = regulator_bulk_enable(st->chip_info->num_vrefs, st->vref_reg); in ad5360_probe()
517 regulator_bulk_disable(st->chip_info->num_vrefs, st->vref_reg); in ad5360_probe()
533 regulator_bulk_disable(st->chip_info->num_vrefs, st->vref_reg); in ad5360_remove()