Lines Matching defs:node
653 struct device_node *node)
655 const char *name = node->name;
659 ret = of_property_read_u32(node, "reg", &chan);
673 ret = of_property_read_u32(node, "qcom,decimation", &value);
686 ret = of_property_read_u32_array(node, "qcom,pre-scaling", varr, 2);
699 ret = of_property_read_u32(node, "qcom,hw-settle-time", &value);
712 ret = of_property_read_u32(node, "qcom,avg-samples", &value);
725 if (of_property_read_bool(node, "qcom,ratiometric"))
735 static int vadc_get_dt_data(struct vadc_priv *vadc, struct device_node *node)
744 vadc->nchannels = of_get_available_child_count(node);
760 for_each_available_child_of_node(node, child) {
852 struct device_node *node = pdev->dev.of_node;
864 ret = of_property_read_u32(node, "reg", ®);
884 ret = vadc_get_dt_data(vadc, node);