Home
last modified time | relevance | path

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

/openbmc/linux/drivers/power/supply/
H A Drk817_charger.c99 int charge_now_uah; member
382 charger->charge_now_uah = ADC_TO_CHARGE_UAH(tmp, charger->res_div); in rk817_read_props()
383 if (charger->charge_now_uah < 0) in rk817_read_props()
384 charger->charge_now_uah = 0; in rk817_read_props()
385 if (charger->charge_now_uah > charger->fcc_mah * 1000) in rk817_read_props()
386 charger->charge_now_uah = charger->fcc_mah * 1000; in rk817_read_props()
389 charger->soc = charger->charge_now_uah * 100 / charger->fcc_mah; in rk817_read_props()
525 val->intval = charger->charge_now_uah; in rk817_bat_get_prop()