Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/power/
Dds2760_battery.c50 int full_active_uAh; /* units of µAh */ member
187 di->full_active_uAh = di->raw[DS2760_ACTIVE_FULL] << 8 | in ds2760_battery_read_status()
193 if (di->full_active_uAh == 0) in ds2760_battery_read_status()
194 di->full_active_uAh = di->rated_capacity / 1000L; in ds2760_battery_read_status()
196 scale[0] = di->full_active_uAh; in ds2760_battery_read_status()
200 di->full_active_uAh = battery_interpolate(scale, di->temp_C / 10); in ds2760_battery_read_status()
201 di->full_active_uAh *= 1000; /* convert to µAh */ in ds2760_battery_read_status()
211 if (di->full_active_uAh == di->empty_uAh) in ds2760_battery_read_status()
217 (di->full_active_uAh - di->empty_uAh); in ds2760_battery_read_status()
282 di->full_active_uAh); in ds2760_battery_update_status()
[all …]