Lines Matching refs:refsel
149 enum ad7124_ref_sel refsel; member
360 unsigned int refsel = cfg->refsel; in ad7124_init_config_vref() local
362 switch (refsel) { in ad7124_init_config_vref()
366 if (IS_ERR(st->vref[refsel])) { in ad7124_init_config_vref()
369 ad7124_ref_names[refsel]); in ad7124_init_config_vref()
370 return PTR_ERR(st->vref[refsel]); in ad7124_init_config_vref()
372 cfg->vref_mv = regulator_get_voltage(st->vref[refsel]); in ad7124_init_config_vref()
383 dev_err(&st->sd.spi->dev, "Invalid reference %d\n", refsel); in ad7124_init_config_vref()
398 val = AD7124_CONFIG_BIPOLAR(cfg->bipolar) | AD7124_CONFIG_REF_SEL(cfg->refsel) | in ad7124_write_config()
868 cfg->refsel = AD7124_INT_REF; in ad7124_of_parse_channel_config()
870 cfg->refsel = tmp; in ad7124_of_parse_channel_config()