Lines Matching refs:ri

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