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)
commitc1e72193ea3fa02e96bf3aa66006e18d107d0266
treeaa53fe8b3a739dcf552dfef38f536f04800597cf
parent5c6e9bf2c96e746237516bc8897add67682ee452
ds2760_battery: add rated_capacity module parameter

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>
drivers/power/ds2760_battery.c