Lines Matching full:sense
300 * Using .read_avail() is fringe to begin with and makes no sense in rescale_configure_channel()
314 u32 sense; in rescale_current_sense_amplifier_props() local
320 ret = device_property_read_u32(dev, "sense-resistor-micro-ohms", in rescale_current_sense_amplifier_props()
321 &sense); in rescale_current_sense_amplifier_props()
323 dev_err(dev, "failed to read the sense resistance: %d\n", ret); in rescale_current_sense_amplifier_props()
327 device_property_read_u32(dev, "sense-gain-mult", &gain_mult); in rescale_current_sense_amplifier_props()
328 device_property_read_u32(dev, "sense-gain-div", &gain_div); in rescale_current_sense_amplifier_props()
331 * Calculate the scaling factor, 1 / (gain * sense), or in rescale_current_sense_amplifier_props()
332 * gain_div / (gain_mult * sense), while trying to keep the in rescale_current_sense_amplifier_props()
335 factor = gcd(sense, 1000000); in rescale_current_sense_amplifier_props()
337 rescale->denominator = sense / factor; in rescale_current_sense_amplifier_props()
443 s32 sense = 1; in rescale_temp_transducer_props() local
447 device_property_read_u32(dev, "sense-offset-millicelsius", &offset); in rescale_temp_transducer_props()
448 device_property_read_u32(dev, "sense-resistor-ohms", &sense); in rescale_temp_transducer_props()
456 rescale->denominator = alpha * sense; in rescale_temp_transducer_props()
496 { .compatible = "current-sense-amplifier",
498 { .compatible = "current-sense-shunt",
502 { .compatible = "temperature-sense-rtd",