Lines Matching defs:rsense
112 /* cold junction for thermocouples and rsense for rtd's and thermistor's */
581 struct ltc2983_rsense *rsense = to_rsense(sensor);
584 chan_val = LTC2983_R_SENSE_VAL(rsense->r_sense_val);
706 phandle = of_parse_phandle(child, "adi,rsense-handle", 0);
708 dev_err(dev, "Property adi,rsense-handle missing or invalid");
741 if (of_property_read_bool(child, "adi,rsense-share")) {
742 /* Current rotation is only available with rsense sharing */
759 * For 4wire RTDs with kelvin rsense, the rsense channel cannot be
773 /* kelvin rsense*/
775 "Invalid rsense chann:%d to use in kelvin rsense",
879 phandle = of_parse_phandle(child, "adi,rsense-handle", 0);
881 dev_err(dev, "Property adi,rsense-handle missing or invalid");
887 dev_err(dev, "rsense channel must be configured...\n");
893 } else if (of_property_read_bool(child, "adi,rsense-share")) {
894 /* rotation is only possible if sharing rsense */
1079 struct ltc2983_rsense *rsense;
1083 rsense = devm_kzalloc(&st->spi->dev, sizeof(*rsense), GFP_KERNEL);
1084 if (!rsense)
1094 ret = of_property_read_u32(child, "adi,rsense-val-milli-ohms", &temp);
1096 dev_err(&st->spi->dev, "Property adi,rsense-val-milli-ohms missing\n");
1105 rsense->r_sense_val = __convert_to_raw((u64)temp * 1000, 1024);
1108 rsense->sensor.assign_chan = ltc2983_r_sense_assign_chan;
1110 return &rsense->sensor;
1335 /* don't add rsense to iio */
1400 * We also don't assign iio channels for rsense.