of_regulator_match

The interface has the following parameters.
  • Synopsis:
    int of_regulator_match(struct device *dev, struct device_node *node,
    			      struct of_regulator_match *matches,
    			      unsigned int num_matches);
  • Description: During the procedure of probe for the provider, every component of the match table will be compared with all the regulators that are actually used by name. And all matches will be initialized according to device node.
  • Parameters:
    • dev: The target i2c device
    • node: Regulator DTS node
    • matches: The defined regulator information
    • num_matches: The defined regulator number
  • Return: Number of matches.