Home
last modified time | relevance | path

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

/openbmc/linux/drivers/power/supply/
H A Dds2760_battery.c106 int empty_uAh; /* units of µAh */ member
340 di->empty_uAh = battery_interpolate(scale, di->temp_C / 10); in ds2760_battery_read_status()
341 di->empty_uAh *= 1000; /* convert to µAh */ in ds2760_battery_read_status()
343 if (di->full_active_uAh == di->empty_uAh) in ds2760_battery_read_status()
348 di->rem_capacity = ((di->accum_current_uAh - di->empty_uAh) * 100L) / in ds2760_battery_read_status()
349 (di->full_active_uAh - di->empty_uAh); in ds2760_battery_read_status()
357 di->life_sec = -((di->accum_current_uAh - di->empty_uAh) * 36L) in ds2760_battery_read_status()
566 val->intval = di->empty_uAh; in ds2760_battery_get_property()