Home
last modified time | relevance | path

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

/openbmc/linux/drivers/power/supply/
H A Dds2760_battery.c42 static unsigned int rated_capacity; variable
43 module_param(rated_capacity, uint, 0644);
44 MODULE_PARM_DESC(rated_capacity, "rated battery capacity, 10*mAh or index");
103 int rated_capacity; /* units of µAh */ member
311 di->rated_capacity = rated_capacities[ in ds2760_battery_read_status()
314 di->rated_capacity = di->raw[DS2760_RATED_CAPACITY] * 10; in ds2760_battery_read_status()
316 di->rated_capacity *= 1000; /* convert to µAh */ in ds2760_battery_read_status()
326 di->full_active_uAh = di->rated_capacity / 1000L; in ds2760_battery_read_status()
438 unsigned char rated_capacity) in ds2760_battery_write_rated_capacity() argument
440 if (rated_capacity == di->raw[DS2760_RATED_CAPACITY]) in ds2760_battery_write_rated_capacity()
[all …]