Home
last modified time | relevance | path

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

/openbmc/linux/drivers/power/supply/
H A Drk817_charger.c118 #define CHARGE_TO_ADC(capacity, res_div) \ macro
261 charge_now_adc = CHARGE_TO_ADC(charger->fcc_mah, in rk817_bat_calib_cap()
298 charge_now_adc = CHARGE_TO_ADC(charger->fcc_mah, in rk817_bat_calib_cap()
343 charge_now_adc = CHARGE_TO_ADC(0, charger->res_div); in rk817_bat_calib_cap()
845 tmp = CHARGE_TO_ADC(boot_charge_mah, charger->res_div); in rk817_read_or_set_full_charge_on_boot()
853 tmp = CHARGE_TO_ADC((charger->bat_charge_full_design_uah / 1000), in rk817_read_or_set_full_charge_on_boot()