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

/linux-4.1.27/drivers/power/
H A Dds2760_battery.c48 int rated_capacity; /* units of µAh */ member in struct:ds2760_device_info
72 static unsigned int rated_capacity; variable
73 module_param(rated_capacity, uint, 0644);
74 MODULE_PARM_DESC(rated_capacity, "rated battery capacity, 10*mAh or index");
179 di->rated_capacity = rated_capacities[ ds2760_battery_read_status()
182 di->rated_capacity = di->raw[DS2760_RATED_CAPACITY] * 10; ds2760_battery_read_status()
184 di->rated_capacity *= 1000; /* convert to µAh */ ds2760_battery_read_status()
194 di->full_active_uAh = di->rated_capacity / 1000L; ds2760_battery_read_status()
306 unsigned char rated_capacity) ds2760_battery_write_rated_capacity()
308 if (rated_capacity == di->raw[DS2760_RATED_CAPACITY]) ds2760_battery_write_rated_capacity()
311 w1_ds2760_write(di->w1_dev, &rated_capacity, DS2760_RATED_CAPACITY, 1); ds2760_battery_write_rated_capacity()
428 val->intval = di->rated_capacity; ds2760_battery_get_property()
551 if (rated_capacity) ds2760_battery_probe()
552 ds2760_battery_write_rated_capacity(di, rated_capacity); ds2760_battery_probe()
305 ds2760_battery_write_rated_capacity(struct ds2760_device_info *di, unsigned char rated_capacity) ds2760_battery_write_rated_capacity() argument

Completed in 47 milliseconds