Lines Matching refs:refsel
152 enum ad7124_ref_sel refsel;
365 unsigned int refsel = cfg->refsel; in ad7124_init_config_vref() local
367 switch (refsel) { in ad7124_init_config_vref()
371 if (IS_ERR(st->vref[refsel])) { in ad7124_init_config_vref()
374 ad7124_ref_names[refsel]); in ad7124_init_config_vref()
375 return PTR_ERR(st->vref[refsel]); in ad7124_init_config_vref()
377 cfg->vref_mv = regulator_get_voltage(st->vref[refsel]); in ad7124_init_config_vref()
387 dev_err(&st->sd.spi->dev, "Invalid reference %d\n", refsel); in ad7124_init_config_vref()
402 val = AD7124_CONFIG_BIPOLAR(cfg->bipolar) | AD7124_CONFIG_REF_SEL(cfg->refsel) | in ad7124_write_config()
861 cfg->refsel = AD7124_INT_REF; in ad7124_parse_channel_config()
863 cfg->refsel = tmp; in ad7124_parse_channel_config()