Home
last modified time | relevance | path

Searched refs:rsense (Results 1 – 2 of 2) sorted by relevance

/Linux-v4.19/drivers/power/supply/
Dmax1721x_battery.c65 unsigned int rsense; /* in tenths uOhm */ member
178 max172xx_current_to_voltage(reg) / (int)info->rsense; in max1721x_battery_get_property()
183 max172xx_current_to_voltage(reg) / (int)info->rsense; in max1721x_battery_get_property()
368 info->rsense = 0; in devm_w1_max1721x_add_device()
369 if (regmap_read(info->regmap, MAX1721X_REG_NRSENSE, &info->rsense)) { in devm_w1_max1721x_add_device()
374 if (!info->rsense) { in devm_w1_max1721x_add_device()
376 info->rsense = 1000; /* in regs in 10^-5 */ in devm_w1_max1721x_add_device()
378 dev_info(info->w1_dev, "RSense: %d mOhms.\n", info->rsense / 100); in devm_w1_max1721x_add_device()
/Linux-v4.19/drivers/iio/adc/
Dqcom-spmi-iadc.c119 u32 rsense[2]; member
340 isense_ua = vsense_uv / iadc->rsense[chan->channel]; in iadc_read_raw()
444 &iadc->rsense[IADC_EXT_RSENSE]); in iadc_rsense_read()
446 iadc->rsense[IADC_EXT_RSENSE] = IADC_INT_RSENSE_IDEAL_VALUE; in iadc_rsense_read()
448 if (!iadc->rsense[IADC_EXT_RSENSE]) { in iadc_rsense_read()
470 iadc->rsense[IADC_INT_RSENSE] = int_sense; in iadc_rsense_read()
531 iadc->rsense[IADC_INT_RSENSE], in iadc_probe()
532 iadc->rsense[IADC_EXT_RSENSE]); in iadc_probe()