Lines Matching defs:rdev

293 static int ab8500_regulator_enable(struct regulator_dev *rdev)
296 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
299 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
307 dev_err(rdev_get_dev(rdev),
312 dev_vdbg(rdev_get_dev(rdev),
320 static int ab8500_regulator_disable(struct regulator_dev *rdev)
323 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
326 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
334 dev_err(rdev_get_dev(rdev),
339 dev_vdbg(rdev_get_dev(rdev),
347 static int ab8500_regulator_is_enabled(struct regulator_dev *rdev)
350 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
354 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
361 dev_err(rdev_get_dev(rdev),
366 dev_vdbg(rdev_get_dev(rdev),
379 struct regulator_dev *rdev, int input_uV,
384 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
387 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
399 static int ab8500_regulator_set_mode(struct regulator_dev *rdev,
405 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
408 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
459 if (info->mode_mask || ab8500_regulator_is_enabled(rdev)) {
463 dev_err(rdev_get_dev(rdev),
468 dev_vdbg(rdev_get_dev(rdev),
488 static unsigned int ab8500_regulator_get_mode(struct regulator_dev *rdev)
490 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
497 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
534 static int ab8500_regulator_get_voltage_sel(struct regulator_dev *rdev)
537 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
541 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
550 dev_err(rdev_get_dev(rdev),
555 dev_vdbg(rdev_get_dev(rdev),
565 static int ab8500_regulator_set_voltage_sel(struct regulator_dev *rdev,
569 struct ab8500_regulator_info *info = rdev_get_drvdata(rdev);
573 dev_err(rdev_get_dev(rdev), "regulator info null pointer\n");
585 dev_err(rdev_get_dev(rdev),
588 dev_vdbg(rdev_get_dev(rdev),
1670 struct regulator_dev *rdev;
1692 rdev = devm_regulator_register(&pdev->dev, &info->desc, &config);
1693 if (IS_ERR(rdev)) {
1696 return PTR_ERR(rdev);