Lines Matching refs:rsense
127 /* cold junction for thermocouples and rsense for rtd's and thermistor's */
619 struct ltc2983_rsense *rsense = to_rsense(sensor);
622 chan_val = LTC2983_R_SENSE_VAL(rsense->r_sense_val);
760 ref = fwnode_find_reference(child, "adi,rsense-handle", 0);
762 dev_err(dev, "Property adi,rsense-handle missing or invalid");
795 if (fwnode_property_read_bool(child, "adi,rsense-share")) {
796 /* Current rotation is only available with rsense sharing */
813 * For 4wire RTDs with kelvin rsense, the rsense channel cannot be
827 /* kelvin rsense*/
829 "Invalid rsense chann:%d to use in kelvin rsense",
932 ref = fwnode_find_reference(child, "adi,rsense-handle", 0);
934 dev_err(dev, "Property adi,rsense-handle missing or invalid");
940 dev_err(dev, "rsense channel must be configured...\n");
946 } else if (fwnode_property_read_bool(child, "adi,rsense-share")) {
947 /* rotation is only possible if sharing rsense */
1131 struct ltc2983_rsense *rsense;
1135 rsense = devm_kzalloc(&st->spi->dev, sizeof(*rsense), GFP_KERNEL);
1136 if (!rsense)
1146 ret = fwnode_property_read_u32(child, "adi,rsense-val-milli-ohms", &temp);
1148 dev_err(&st->spi->dev, "Property adi,rsense-val-milli-ohms missing\n");
1157 rsense->r_sense_val = __convert_to_raw((u64)temp * 1000, 1024);
1160 rsense->sensor.assign_chan = ltc2983_r_sense_assign_chan;
1162 return &rsense->sensor;
1421 /* don't add rsense to iio */
1537 * We also don't assign iio channels for rsense.