Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iio/adc/
H A Dqcom-spmi-iadc.c314 s32 isense_ua, vsense_uv; in iadc_read_raw() local
328 vsense_uv = vsense_raw * IADC_REF_GAIN_MICRO_VOLTS; in iadc_read_raw()
329 vsense_uv /= (s32)iadc->gain - iadc->offset[chan->channel]; in iadc_read_raw()
331 isense_ua = vsense_uv / iadc->rsense[chan->channel]; in iadc_read_raw()
335 adc_raw, vsense_uv, isense_ua); in iadc_read_raw()