Lines Matching refs:ri
419 struct da903x_regulator_info *ri; in find_regulator_info() local
423 ri = &da903x_regulator_info[i]; in find_regulator_info()
424 if (ri->desc.id == id) in find_regulator_info()
425 return ri; in find_regulator_info()
432 struct da903x_regulator_info *ri = NULL; in da903x_regulator_probe() local
436 ri = find_regulator_info(pdev->id); in da903x_regulator_probe()
437 if (ri == NULL) { in da903x_regulator_probe()
443 if (ri->desc.id == DA9034_ID_LDO12) { in da903x_regulator_probe()
444 ri->desc.ops = &da9034_regulator_ldo12_ops; in da903x_regulator_probe()
445 ri->desc.n_voltages = 16; in da903x_regulator_probe()
446 ri->desc.linear_ranges = da9034_ldo12_ranges; in da903x_regulator_probe()
447 ri->desc.n_linear_ranges = ARRAY_SIZE(da9034_ldo12_ranges); in da903x_regulator_probe()
450 if (ri->desc.id == DA9030_ID_LDO14) in da903x_regulator_probe()
451 ri->desc.ops = &da9030_regulator_ldo14_ops; in da903x_regulator_probe()
453 if (ri->desc.id == DA9030_ID_LDO1 || ri->desc.id == DA9030_ID_LDO15) in da903x_regulator_probe()
454 ri->desc.ops = &da9030_regulator_ldo1_15_ops; in da903x_regulator_probe()
458 config.driver_data = ri; in da903x_regulator_probe()
460 rdev = devm_regulator_register(&pdev->dev, &ri->desc, &config); in da903x_regulator_probe()
463 ri->desc.name); in da903x_regulator_probe()