Lines Matching defs:rdev
506 static int ab8500_ext_regulator_enable(struct regulator_dev *rdev)
509 struct ab8500_ext_regulator_info *info = rdev_get_drvdata(rdev);
513 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
530 dev_err(rdev_get_dev(rdev),
535 dev_dbg(rdev_get_dev(rdev),
543 static int ab8500_ext_regulator_disable(struct regulator_dev *rdev)
546 struct ab8500_ext_regulator_info *info = rdev_get_drvdata(rdev);
550 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
566 dev_err(rdev_get_dev(rdev),
571 dev_dbg(rdev_get_dev(rdev), "%s-disable (bank, reg, mask, value):"
579 static int ab8500_ext_regulator_is_enabled(struct regulator_dev *rdev)
582 struct ab8500_ext_regulator_info *info = rdev_get_drvdata(rdev);
586 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
593 dev_err(rdev_get_dev(rdev),
598 dev_dbg(rdev_get_dev(rdev), "%s-is_enabled (bank, reg, mask, value):"
610 static int ab8500_ext_regulator_set_mode(struct regulator_dev *rdev,
614 struct ab8500_ext_regulator_info *info = rdev_get_drvdata(rdev);
618 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
638 if (ab8500_ext_regulator_is_enabled(rdev) &&
644 dev_err(rdev_get_dev(rdev),
649 dev_dbg(rdev_get_dev(rdev),
661 static unsigned int ab8500_ext_regulator_get_mode(struct regulator_dev *rdev)
663 struct ab8500_ext_regulator_info *info = rdev_get_drvdata(rdev);
667 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
681 static int ab8500_ext_set_voltage(struct regulator_dev *rdev, int min_uV,
684 struct regulation_constraints *regu_constraints = rdev->constraints;
687 dev_err(rdev_get_dev(rdev), "No regulator constraints\n");
695 dev_err(rdev_get_dev(rdev),
703 static int ab8500_ext_list_voltage(struct regulator_dev *rdev,
706 struct regulation_constraints *regu_constraints = rdev->constraints;
709 dev_err(rdev_get_dev(rdev), "regulator constraints null pointer\n");
793 struct regulator_dev *rdev;
833 rdev = devm_regulator_register(&pdev->dev, &info->desc,
835 if (IS_ERR(rdev)) {
838 return PTR_ERR(rdev);