Lines Matching defs:ri
59 * @ri: Overall regulator data
64 static int tps65090_reg_set_overcurrent_wait(struct tps65090_regulator *ri,
71 ri->overcurrent_wait << CTRL_WT_BIT);
255 struct tps65090_regulator *ri, bool enable)
258 struct device *parent = ri->dev->parent;
259 unsigned int reg_en_reg = ri->desc->enable_reg;
266 dev_err(ri->dev, "Error in updating reg 0x%x\n", reg_en_reg);
271 struct tps65090_regulator *ri,
275 struct device *parent = ri->dev->parent;
276 unsigned int reg_en_reg = ri->desc->enable_reg;
286 dev_err(ri->dev, "Error in set reg 0x%x\n", reg_en_reg);
290 return tps65090_config_ext_control(ri, false);
408 struct tps65090_regulator *ri = NULL;
438 ri = &pmic[num];
439 ri->dev = &pdev->dev;
440 ri->desc = &tps65090_regulator_desc[num];
442 ri->overcurrent_wait_valid =
444 ri->overcurrent_wait = tps_pdata->overcurrent_wait;
454 ri->desc->ops = &tps65090_ext_control_ops;
457 ri, tps_pdata);
467 config.driver_data = ri;
484 rdev = devm_regulator_register(&pdev->dev, ri->desc, &config);
487 ri->desc->name);
490 ri->rdev = rdev;
492 if (ri->overcurrent_wait_valid) {
493 ret = tps65090_reg_set_overcurrent_wait(ri, rdev);
501 ret = tps65090_config_ext_control(ri, true);