Searched refs:rem_capacity (Results 1 - 1 of 1) sorted by relevance

/drivers/power/
H A Dds2760_battery.c49 int rem_capacity; /* percentage */ member in struct:ds2760_device_info
211 di->rem_capacity = 0;
215 di->rem_capacity = ((di->accum_current_uAh - di->empty_uAh) * 100L) /
218 if (di->rem_capacity < 0)
219 di->rem_capacity = 0;
220 if (di->rem_capacity > 100)
221 di->rem_capacity = 100;
448 val->intval = di->rem_capacity;

Completed in 57 milliseconds