Lines Matching defs:rdev

111 static int ab8500_ext_regulator_enable(struct regulator_dev *rdev)
114 struct ab8500_ext_regulator_info *info = rdev_get_drvdata(rdev);
118 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
135 dev_err(rdev_get_dev(rdev),
140 dev_dbg(rdev_get_dev(rdev),
148 static int ab8500_ext_regulator_disable(struct regulator_dev *rdev)
151 struct ab8500_ext_regulator_info *info = rdev_get_drvdata(rdev);
155 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
171 dev_err(rdev_get_dev(rdev),
176 dev_dbg(rdev_get_dev(rdev), "%s-disable (bank, reg, mask, value):"
184 static int ab8500_ext_regulator_is_enabled(struct regulator_dev *rdev)
187 struct ab8500_ext_regulator_info *info = rdev_get_drvdata(rdev);
191 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
198 dev_err(rdev_get_dev(rdev),
203 dev_dbg(rdev_get_dev(rdev), "%s-is_enabled (bank, reg, mask, value):"
215 static int ab8500_ext_regulator_set_mode(struct regulator_dev *rdev,
219 struct ab8500_ext_regulator_info *info = rdev_get_drvdata(rdev);
223 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
243 if (ab8500_ext_regulator_is_enabled(rdev) &&
249 dev_err(rdev_get_dev(rdev),
254 dev_dbg(rdev_get_dev(rdev),
266 static unsigned int ab8500_ext_regulator_get_mode(struct regulator_dev *rdev)
268 struct ab8500_ext_regulator_info *info = rdev_get_drvdata(rdev);
272 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
286 static int ab8500_ext_set_voltage(struct regulator_dev *rdev, int min_uV,
289 struct regulation_constraints *regu_constraints = rdev->constraints;
292 dev_err(rdev_get_dev(rdev), "No regulator constraints\n");
300 dev_err(rdev_get_dev(rdev),
308 static int ab8500_ext_list_voltage(struct regulator_dev *rdev,
311 struct regulation_constraints *regu_constraints = rdev->constraints;
314 dev_err(rdev_get_dev(rdev), "regulator constraints null pointer\n");
397 struct regulator_dev *rdev;
431 rdev = devm_regulator_register(&pdev->dev, &info->desc,
433 if (IS_ERR(rdev)) {
436 return PTR_ERR(rdev);