Home
last modified time | relevance | path

Searched refs:vol_1000mv_adc (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/power/supply/
H A Dsc27xx_fuel_gauge.c92 * @vol_1000mv_adc: ADC value corresponding to 1000 mV
118 int vol_1000mv_adc; member
144 return DIV_S64_ROUND_CLOSEST(adc * 1000, data->vol_1000mv_adc); in sc27xx_fgu_adc_to_voltage()
149 return DIV_ROUND_CLOSEST(vol * data->vol_1000mv_adc, 1000); in sc27xx_fgu_voltage_to_adc()
983 data->vol_1000mv_adc = DIV_ROUND_CLOSEST(cal_4200mv * 10, 42); in sc27xx_fgu_calibration()
985 DIV_ROUND_CLOSEST(data->vol_1000mv_adc * 4 * data->calib_resist, in sc27xx_fgu_calibration()
/kernel/linux/linux-6.6/drivers/power/supply/
H A Dsc27xx_fuel_gauge.c92 * @vol_1000mv_adc: ADC value corresponding to 1000 mV
118 int vol_1000mv_adc; member
144 return DIV_S64_ROUND_CLOSEST(adc * 1000, data->vol_1000mv_adc); in sc27xx_fgu_adc_to_voltage()
149 return DIV_ROUND_CLOSEST(vol * data->vol_1000mv_adc, 1000); in sc27xx_fgu_voltage_to_adc()
983 data->vol_1000mv_adc = DIV_ROUND_CLOSEST(cal_4200mv * 10, 42); in sc27xx_fgu_calibration()
985 DIV_ROUND_CLOSEST(data->vol_1000mv_adc * 4 * data->calib_resist, in sc27xx_fgu_calibration()

Completed in 4 milliseconds