Searched refs:rem_capacity (Results 1 – 1 of 1) sorted by relevance
104 int rem_capacity; /* percentage */ member344 di->rem_capacity = 0; in ds2760_battery_read_status()348 di->rem_capacity = ((di->accum_current_uAh - di->empty_uAh) * 100L) / in ds2760_battery_read_status()351 if (di->rem_capacity < 0) in ds2760_battery_read_status()352 di->rem_capacity = 0; in ds2760_battery_read_status()353 if (di->rem_capacity > 100) in ds2760_battery_read_status()354 di->rem_capacity = 100; in ds2760_battery_read_status()578 val->intval = di->rem_capacity; in ds2760_battery_get_property()