Lines Matching defs:node
676 struct device_node *node,
679 const char *name = node->name, *channel_name;
685 ret = of_property_read_u32(node, "reg", &chan);
710 channel_name = of_get_property(node,
711 "label", NULL) ? : node->name;
718 ret = of_property_read_u32(node, "qcom,decimation", &value);
731 ret = of_property_read_u32_array(node, "qcom,pre-scaling", varr, 2);
745 ret = of_property_read_u32(node, "qcom,hw-settle-time", &value);
778 ret = of_property_read_u32(node, "qcom,avg-samples", &value);
791 if (of_property_read_bool(node, "qcom,ratiometric"))
866 static int adc5_get_dt_data(struct adc5_chip *adc, struct device_node *node)
877 adc->nchannels = of_get_available_child_count(node);
893 id = of_match_node(adc5_match_table, node);
900 for_each_available_child_of_node(node, child) {
928 struct device_node *node = pdev->dev.of_node;
940 ret = of_property_read_u32(node, "reg", ®);
956 ret = adc5_get_dt_data(adc, node);