Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/power/supply/
Dds2760_battery.c106 int empty_uAh; /* units of µAh */ member
348 di->empty_uAh = battery_interpolate(scale, di->temp_C / 10); in ds2760_battery_read_status()
349 di->empty_uAh *= 1000; /* convert to µAh */ in ds2760_battery_read_status()
351 if (di->full_active_uAh == di->empty_uAh) in ds2760_battery_read_status()
356 di->rem_capacity = ((di->accum_current_uAh - di->empty_uAh) * 100L) / in ds2760_battery_read_status()
357 (di->full_active_uAh - di->empty_uAh); in ds2760_battery_read_status()
365 di->life_sec = -((di->accum_current_uAh - di->empty_uAh) * 36L) in ds2760_battery_read_status()
574 val->intval = di->empty_uAh; in ds2760_battery_get_property()