Lines Matching defs:rdev
57 static int tps68470_regulator_enable(struct regulator_dev *rdev)
59 struct tps68470_regulator_data *data = rdev->reg_data;
63 if (rdev->desc->id == TPS68470_CORE) {
66 dev_err(&rdev->dev, "Error enabling TPS68470 clock\n");
71 return regulator_enable_regmap(rdev);
74 static int tps68470_regulator_disable(struct regulator_dev *rdev)
76 struct tps68470_regulator_data *data = rdev->reg_data;
78 if (rdev->desc->id == TPS68470_CORE)
81 return regulator_disable_regmap(rdev);
144 struct regulator_dev *rdev;
165 rdev = devm_regulator_register(dev, ®ulators[i], &config);
166 if (IS_ERR(rdev))
167 return dev_err_probe(dev, PTR_ERR(rdev),