Lines Matching full:rsense

130 /* cold junction for thermocouples and rsense for rtd's and thermistor's */
620 struct ltc2983_rsense *rsense = to_rsense(sensor); in ltc2983_r_sense_assign_chan() local
623 chan_val = LTC2983_R_SENSE_VAL(rsense->r_sense_val); in ltc2983_r_sense_assign_chan()
751 fwnode_find_reference(child, "adi,rsense-handle", 0); in ltc2983_rtd_new()
754 "Property adi,rsense-handle missing or invalid\n"); in ltc2983_rtd_new()
774 /* 4 wires, Kelvin Rsense */ in ltc2983_rtd_new()
784 if (fwnode_property_read_bool(child, "adi,rsense-share")) { in ltc2983_rtd_new()
785 /* Current rotation is only available with rsense sharing */ in ltc2983_rtd_new()
800 * For 4wire RTDs with kelvin rsense, the rsense channel cannot be in ltc2983_rtd_new()
814 /* kelvin rsense*/ in ltc2983_rtd_new()
816 "Invalid rsense chann:%d to use in kelvin rsense\n", in ltc2983_rtd_new()
901 fwnode_find_reference(child, "adi,rsense-handle", 0); in ltc2983_thermistor_new()
904 "Property adi,rsense-handle missing or invalid\n"); in ltc2983_thermistor_new()
909 "rsense channel must be configured...\n"); in ltc2983_thermistor_new()
913 } else if (fwnode_property_read_bool(child, "adi,rsense-share")) { in ltc2983_thermistor_new()
914 /* rotation is only possible if sharing rsense */ in ltc2983_thermistor_new()
1082 struct ltc2983_rsense *rsense; in ltc2983_r_sense_new() local
1086 rsense = devm_kzalloc(&st->spi->dev, sizeof(*rsense), GFP_KERNEL); in ltc2983_r_sense_new()
1087 if (!rsense) in ltc2983_r_sense_new()
1096 ret = fwnode_property_read_u32(child, "adi,rsense-val-milli-ohms", &temp); in ltc2983_r_sense_new()
1099 "Property adi,rsense-val-milli-ohms missing\n"); in ltc2983_r_sense_new()
1106 rsense->r_sense_val = __convert_to_raw((u64)temp * 1000, 1024); in ltc2983_r_sense_new()
1109 rsense->sensor.assign_chan = ltc2983_r_sense_assign_chan; in ltc2983_r_sense_new()
1111 return &rsense->sensor; in ltc2983_r_sense_new()
1362 /* don't add rsense to iio */ in ltc2983_parse_fw()
1470 * We also don't assign iio channels for rsense. in ltc2983_setup()