Lines Matching defs:rdev
554 * Returns number of regulators coupled with rdev.
556 int of_get_n_coupled(struct regulator_dev *rdev)
558 struct device_node *node = rdev->dev.of_node;
603 * of_check_coupling_data - Parse rdev's coupling properties and check data
605 * @rdev: pointer to regulator_dev whose data is checked
608 * - rdev's max_spread is greater than 0
615 bool of_check_coupling_data(struct regulator_dev *rdev)
617 struct device_node *node = rdev->dev.of_node;
618 int n_phandles = of_get_n_coupled(rdev);
624 /* iterate over rdev's phandles */
626 int max_spread = rdev->constraints->max_spread[i];
630 dev_err(&rdev->dev, "max_spread value invalid\n");
645 dev_err(&rdev->dev, "number of coupled reg phandles mismatch\n");
651 dev_err(&rdev->dev, "missing 2-way linking for coupled regulators\n");
663 dev_err(&rdev->dev,
679 * of_parse_coupled_regulator() - Get regulator_dev pointer from rdev's property
680 * @rdev: Pointer to regulator_dev, whose DTS is used as a source to parse
687 struct regulator_dev *of_parse_coupled_regulator(struct regulator_dev *rdev,
690 struct device_node *node = rdev->dev.of_node;