Lines Matching defs:rdev
488 * Returns number of regulators coupled with rdev.
490 int of_get_n_coupled(struct regulator_dev *rdev)
492 struct device_node *node = rdev->dev.of_node;
537 * of_check_coupling_data - Parse rdev's coupling properties and check data
539 * @rdev: pointer to regulator_dev whose data is checked
542 * - rdev's max_spread is greater than 0
549 bool of_check_coupling_data(struct regulator_dev *rdev)
551 struct device_node *node = rdev->dev.of_node;
552 int n_phandles = of_get_n_coupled(rdev);
558 /* iterate over rdev's phandles */
560 int max_spread = rdev->constraints->max_spread[i];
564 dev_err(&rdev->dev, "max_spread value invalid\n");
579 dev_err(&rdev->dev, "number of coupled reg phandles mismatch\n");
585 dev_err(&rdev->dev, "missing 2-way linking for coupled regulators\n");
597 dev_err(&rdev->dev,
613 * of_parse_coupled regulator - Get regulator_dev pointer from rdev's property
614 * @rdev: Pointer to regulator_dev, whose DTS is used as a source to parse
621 struct regulator_dev *of_parse_coupled_regulator(struct regulator_dev *rdev,
624 struct device_node *node = rdev->dev.of_node;