Searched refs:rsense (Results 1 – 4 of 4) sorted by relevance
/linux-6.3-rc2/drivers/power/supply/ |
A D | max1721x_battery.c | 65 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-6.3-rc2/Documentation/devicetree/bindings/iio/temperature/ |
A D | adi,ltc2983.yaml | 210 adi,rsense-handle: 222 adi,rsense-share: 258 - adi,rsense-handle 304 adi,rsense-handle: 312 adi,rsense-share: 354 - adi,rsense-handle 428 "^rsense@": 442 adi,rsense-val-milli-ohms: 446 - adi,rsense-val-milli-ohms 496 rsense2: rsense@2 { [all …]
|
/linux-6.3-rc2/drivers/iio/adc/ |
A D | qcom-spmi-iadc.c | 111 u32 rsense[2]; member 332 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()
|
/linux-6.3-rc2/drivers/iio/temperature/ |
A D | ltc2983.c | 619 struct ltc2983_rsense *rsense = to_rsense(sensor); in ltc2983_r_sense_assign_chan() local 622 chan_val = LTC2983_R_SENSE_VAL(rsense->r_sense_val); in ltc2983_r_sense_assign_chan() 1131 struct ltc2983_rsense *rsense; in ltc2983_r_sense_new() local 1135 rsense = devm_kzalloc(&st->spi->dev, sizeof(*rsense), GFP_KERNEL); in ltc2983_r_sense_new() 1136 if (!rsense) in ltc2983_r_sense_new() 1157 rsense->r_sense_val = __convert_to_raw((u64)temp * 1000, 1024); in ltc2983_r_sense_new() 1160 rsense->sensor.assign_chan = ltc2983_r_sense_assign_chan; in ltc2983_r_sense_new() 1162 return &rsense->sensor; in ltc2983_r_sense_new()
|
Completed in 29 milliseconds