Lines Matching defs:child

601 					const struct device_node *child,
614 if (of_property_read_bool(child, "adi,single-ended"))
617 ret = of_property_read_u32(child, "adi,sensor-oc-current-microamp",
654 phandle = of_parse_phandle(child, "adi,cold-junction-handle", 0);
675 thermo->custom = __ltc2983_custom_sensor_new(st, child,
692 static struct ltc2983_sensor *ltc2983_rtd_new(const struct device_node *child,
706 phandle = of_parse_phandle(child, "adi,rsense-handle", 0);
718 ret = of_property_read_u32(child, "adi,number-of-wires", &n_wires);
741 if (of_property_read_bool(child, "adi,rsense-share")) {
743 if (of_property_read_bool(child, "adi,current-rotate")) {
802 rtd->custom = __ltc2983_custom_sensor_new(st, child,
815 ret = of_property_read_u32(child, "adi,excitation-current-microamp",
855 of_property_read_u32(child, "adi,rtd-curve", &rtd->rtd_curve);
865 const struct device_node *child,
879 phandle = of_parse_phandle(child, "adi,rsense-handle", 0);
891 if (of_property_read_bool(child, "adi,single-ended")) {
893 } else if (of_property_read_bool(child, "adi,rsense-share")) {
895 if (of_property_read_bool(child, "adi,current-rotate"))
924 thermistor->custom = __ltc2983_custom_sensor_new(st, child,
937 ret = of_property_read_u32(child, "adi,excitation-current-nanoamp",
1010 const struct device_node *child,
1022 if (of_property_read_bool(child, "adi,single-ended"))
1025 if (of_property_read_bool(child, "adi,three-conversion-cycles"))
1028 if (of_property_read_bool(child, "adi,average-on"))
1043 ret = of_property_read_u32(child, "adi,excitation-current-microamp",
1067 of_property_read_u32(child, "adi,ideal-factor-value", &temp);
1075 static struct ltc2983_sensor *ltc2983_r_sense_new(struct device_node *child,
1094 ret = of_property_read_u32(child, "adi,rsense-val-milli-ohms", &temp);
1113 static struct ltc2983_sensor *ltc2983_adc_new(struct device_node *child,
1123 if (of_property_read_bool(child, "adi,single-ended"))
1267 struct device_node *child;
1284 for_each_available_child_of_node(dev->of_node, child) {
1287 ret = of_property_read_u32(child, "reg", &sensor.chan);
1289 dev_err(dev, "reg property must given for child nodes\n");
1306 ret = of_property_read_u32(child, "adi,sensor-type",
1310 "adi,sensor-type property must given for child nodes\n");
1320 st->sensors[chan] = ltc2983_thermocouple_new(child, st,
1324 st->sensors[chan] = ltc2983_rtd_new(child, st, &sensor);
1327 st->sensors[chan] = ltc2983_thermistor_new(child, st,
1330 st->sensors[chan] = ltc2983_diode_new(child, st,
1333 st->sensors[chan] = ltc2983_r_sense_new(child, st,
1338 st->sensors[chan] = ltc2983_adc_new(child, st, &sensor);
1361 of_node_put(child);