ds2760_battery: add rated_capacity module parameter
authorDaniel Mack <daniel@caiaq.de>
Wed, 15 Jul 2009 16:20:40 +0000 (18:20 +0200)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Thu, 30 Jul 2009 13:36:47 +0000 (17:36 +0400)
For systems where the ds2760 is soldered directly on the PCB, the 'rated
capacity' register is not set to anything useful.

In order to allow users to bootstrap this value, introduce a new module
parameter 'rated_capacity' and use it to write the internal EEPROM in
case the value differes from what's been given.

Signed-off-by: Daniel Mack <daniel@caiaq.de>
Cc: Szabolcs Gyurko <szabolcs.gyurko@tlt.hu>
Acked-by: Matt Reimer <mreimer@vpop.net>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>

No differences found