Lines Matching refs:refsel
111 enum ad7124_ref_sel refsel; member
408 unsigned int refsel = st->channel_config[channel_number].refsel; in ad7124_init_channel_vref() local
410 switch (refsel) { in ad7124_init_channel_vref()
414 if (IS_ERR(st->vref[refsel])) { in ad7124_init_channel_vref()
417 ad7124_ref_names[refsel]); in ad7124_init_channel_vref()
418 return PTR_ERR(st->vref[refsel]); in ad7124_init_channel_vref()
421 regulator_get_voltage(st->vref[refsel]); in ad7124_init_channel_vref()
429 dev_err(&st->sd.spi->dev, "Invalid reference %d\n", refsel); in ad7124_init_channel_vref()
483 st->channel_config[channel].refsel = AD7124_INT_REF; in ad7124_of_parse_channel_config()
485 st->channel_config[channel].refsel = tmp; in ad7124_of_parse_channel_config()
548 AD7124_CONFIG_REF_SEL(st->channel_config[i].refsel) | in ad7124_setup()