Lines Matching defs:rsense
65 unsigned int rsense; /* in tenths uOhm */
174 /* We need signed current, so must cast info->rsense to signed type */
178 max172xx_current_to_voltage(reg) / (int)info->rsense;
183 max172xx_current_to_voltage(reg) / (int)info->rsense;
367 /* rsense init */
368 info->rsense = 0;
369 if (regmap_read(info->regmap, MAX1721X_REG_NRSENSE, &info->rsense)) {
374 if (!info->rsense) {
376 info->rsense = 1000; /* in regs in 10^-5 */
378 dev_info(info->w1_dev, "RSense: %d mOhms.\n", info->rsense / 100);