Searched refs:rsense (Results 1 – 3 of 3) sorted by relevance
65 unsigned int rsense; /* in tenths uOhm */ member178 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()
111 u32 rsense[2]; member332 isense_ua = vsense_uv / iadc->rsense[chan->channel]; in iadc_read_raw()436 &iadc->rsense[IADC_EXT_RSENSE]); in iadc_rsense_read()438 iadc->rsense[IADC_EXT_RSENSE] = IADC_INT_RSENSE_IDEAL_VALUE; in iadc_rsense_read()440 if (!iadc->rsense[IADC_EXT_RSENSE]) { in iadc_rsense_read()462 iadc->rsense[IADC_INT_RSENSE] = int_sense; in iadc_rsense_read()523 iadc->rsense[IADC_INT_RSENSE], in iadc_probe()524 iadc->rsense[IADC_EXT_RSENSE]); in iadc_probe()
590 struct ltc2983_rsense *rsense = to_rsense(sensor); in ltc2983_r_sense_assign_chan() local593 chan_val = LTC2983_R_SENSE_VAL(rsense->r_sense_val); in ltc2983_r_sense_assign_chan()1086 struct ltc2983_rsense *rsense; in ltc2983_r_sense_new() local1090 rsense = devm_kzalloc(&st->spi->dev, sizeof(*rsense), GFP_KERNEL); in ltc2983_r_sense_new()1091 if (!rsense) in ltc2983_r_sense_new()1112 rsense->r_sense_val = __convert_to_raw((u64)temp * 1000, 1024); in ltc2983_r_sense_new()1115 rsense->sensor.assign_chan = ltc2983_r_sense_assign_chan; in ltc2983_r_sense_new()1117 return &rsense->sensor; in ltc2983_r_sense_new()