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