Lines Matching full:sense
311 * Using .read_avail() is fringe to begin with and makes no sense in rescale_configure_channel()
325 u32 sense; in rescale_current_sense_amplifier_props() local
331 ret = device_property_read_u32(dev, "sense-resistor-micro-ohms", in rescale_current_sense_amplifier_props()
332 &sense); in rescale_current_sense_amplifier_props()
334 dev_err(dev, "failed to read the sense resistance: %d\n", ret); in rescale_current_sense_amplifier_props()
338 device_property_read_u32(dev, "sense-gain-mult", &gain_mult); in rescale_current_sense_amplifier_props()
339 device_property_read_u32(dev, "sense-gain-div", &gain_div); in rescale_current_sense_amplifier_props()
342 * Calculate the scaling factor, 1 / (gain * sense), or in rescale_current_sense_amplifier_props()
343 * gain_div / (gain_mult * sense), while trying to keep the in rescale_current_sense_amplifier_props()
346 factor = gcd(sense, 1000000); in rescale_current_sense_amplifier_props()
348 rescale->denominator = sense / factor; in rescale_current_sense_amplifier_props()
454 s32 sense = 1; in rescale_temp_transducer_props() local
458 device_property_read_u32(dev, "sense-offset-millicelsius", &offset); in rescale_temp_transducer_props()
459 device_property_read_u32(dev, "sense-resistor-ohms", &sense); in rescale_temp_transducer_props()
467 rescale->denominator = alpha * sense; in rescale_temp_transducer_props()
507 { .compatible = "current-sense-amplifier",
509 { .compatible = "current-sense-shunt",
513 { .compatible = "temperature-sense-rtd",