Home
last modified time | relevance | path

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

/linux/drivers/power/supply/
H A Dds2760_battery.c105 int full_active_uAh; /* units of µAh */ member
319 di->full_active_uAh = di->raw[DS2760_ACTIVE_FULL] << 8 | in ds2760_battery_read_status()
322 /* If the full_active_uAh value is not given, fall back to the rated in ds2760_battery_read_status()
325 if (di->full_active_uAh == 0) in ds2760_battery_read_status()
326 di->full_active_uAh = di->rated_capacity / 1000L; in ds2760_battery_read_status()
328 scale[0] = di->full_active_uAh; in ds2760_battery_read_status()
332 di->full_active_uAh = battery_interpolate(scale, di->temp_C / 10); in ds2760_battery_read_status()
333 di->full_active_uAh *= 1000; /* convert to µAh */ in ds2760_battery_read_status()
343 if (di->full_active_uAh == di->empty_uAh) in ds2760_battery_read_status()
349 (di->full_active_uAh in ds2760_battery_read_status()
[all...]