• Home
  • Raw
  • Download

Lines Matching refs:child

610 ltc2983_thermocouple_new(const struct fwnode_handle *child, struct ltc2983_data *st,  in ltc2983_thermocouple_new()  argument
622 if (fwnode_property_read_bool(child, "adi,single-ended")) in ltc2983_thermocouple_new()
625 ret = fwnode_property_read_u32(child, "adi,sensor-oc-current-microamp", &oc_current); in ltc2983_thermocouple_new()
661 ref = fwnode_find_reference(child, "adi,cold-junction-handle", 0); in ltc2983_thermocouple_new()
680 thermo->custom = __ltc2983_custom_sensor_new(st, child, in ltc2983_thermocouple_new()
702 ltc2983_rtd_new(const struct fwnode_handle *child, struct ltc2983_data *st, in ltc2983_rtd_new() argument
715 ref = fwnode_find_reference(child, "adi,rsense-handle", 0); in ltc2983_rtd_new()
727 ret = fwnode_property_read_u32(child, "adi,number-of-wires", &n_wires); in ltc2983_rtd_new()
750 if (fwnode_property_read_bool(child, "adi,rsense-share")) { in ltc2983_rtd_new()
752 if (fwnode_property_read_bool(child, "adi,current-rotate")) { in ltc2983_rtd_new()
811 rtd->custom = __ltc2983_custom_sensor_new(st, child, in ltc2983_rtd_new()
824 ret = fwnode_property_read_u32(child, "adi,excitation-current-microamp", in ltc2983_rtd_new()
864 fwnode_property_read_u32(child, "adi,rtd-curve", &rtd->rtd_curve); in ltc2983_rtd_new()
874 ltc2983_thermistor_new(const struct fwnode_handle *child, struct ltc2983_data *st, in ltc2983_thermistor_new() argument
887 ref = fwnode_find_reference(child, "adi,rsense-handle", 0); in ltc2983_thermistor_new()
899 if (fwnode_property_read_bool(child, "adi,single-ended")) { in ltc2983_thermistor_new()
901 } else if (fwnode_property_read_bool(child, "adi,rsense-share")) { in ltc2983_thermistor_new()
903 if (fwnode_property_read_bool(child, "adi,current-rotate")) in ltc2983_thermistor_new()
932 thermistor->custom = __ltc2983_custom_sensor_new(st, child, in ltc2983_thermistor_new()
945 ret = fwnode_property_read_u32(child, "adi,excitation-current-nanoamp", in ltc2983_thermistor_new()
1018 ltc2983_diode_new(const struct fwnode_handle *child, const struct ltc2983_data *st, in ltc2983_diode_new() argument
1029 if (fwnode_property_read_bool(child, "adi,single-ended")) in ltc2983_diode_new()
1032 if (fwnode_property_read_bool(child, "adi,three-conversion-cycles")) in ltc2983_diode_new()
1035 if (fwnode_property_read_bool(child, "adi,average-on")) in ltc2983_diode_new()
1050 ret = fwnode_property_read_u32(child, "adi,excitation-current-microamp", in ltc2983_diode_new()
1074 fwnode_property_read_u32(child, "adi,ideal-factor-value", &temp); in ltc2983_diode_new()
1082 static struct ltc2983_sensor *ltc2983_r_sense_new(struct fwnode_handle *child, in ltc2983_r_sense_new() argument
1101 ret = fwnode_property_read_u32(child, "adi,rsense-val-milli-ohms", &temp); in ltc2983_r_sense_new()
1120 static struct ltc2983_sensor *ltc2983_adc_new(struct fwnode_handle *child, in ltc2983_adc_new() argument
1130 if (fwnode_property_read_bool(child, "adi,single-ended")) in ltc2983_adc_new()
1275 struct fwnode_handle *child; in ltc2983_parse_dt() local
1294 device_for_each_child_node(dev, child) { in ltc2983_parse_dt()
1297 ret = fwnode_property_read_u32(child, "reg", &sensor.chan); in ltc2983_parse_dt()
1316 ret = fwnode_property_read_u32(child, "adi,sensor-type", &sensor.type); in ltc2983_parse_dt()
1329 st->sensors[chan] = ltc2983_thermocouple_new(child, st, in ltc2983_parse_dt()
1333 st->sensors[chan] = ltc2983_rtd_new(child, st, &sensor); in ltc2983_parse_dt()
1336 st->sensors[chan] = ltc2983_thermistor_new(child, st, in ltc2983_parse_dt()
1339 st->sensors[chan] = ltc2983_diode_new(child, st, in ltc2983_parse_dt()
1342 st->sensors[chan] = ltc2983_r_sense_new(child, st, in ltc2983_parse_dt()
1347 st->sensors[chan] = ltc2983_adc_new(child, st, &sensor); in ltc2983_parse_dt()
1370 fwnode_handle_put(child); in ltc2983_parse_dt()