of_regulator_match

该接口有以下参数。
  • 简介:
    int of_regulator_match(struct device *dev, struct device_node *node,
    			      struct of_regulator_match *matches,
    			      unsigned int num_matches);
  • 描述:在为provider进行探测的过程中,匹配表的每个组件都将与实际使用的所有regulator进行比较,并且所有的匹配项都将根据设备节点进行初始化。
  • 参数:
    • dev:目标i2c设备
    • node:Regulator DTS节点
    • matches:定义的regulator信息
    • num_matches:定义的regulator数量
  • 返回值:匹配的个数