From: Paul Parsons Date: Mon, 25 Apr 2011 13:45:40 +0000 (+0000) Subject: ds2760_battery: Fix rated capacity of the hx4700 1800mAh battery X-Git-Tag: v3.0-rc1~49^2~1 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?p=pandora-kernel.git;a=commitdiff_plain;h=9c6f8740d0c8d2b4de78511257f38384f4cbb292 ds2760_battery: Fix rated capacity of the hx4700 1800mAh battery Fix rated capacity of the HP iPAQ hx4700 3.7V 1800mAh (359113-001) battery. For this battery the value of the rated capacity EEPROM register at 0x32 is 7; thus rated_capacities[7] = 1800. Signed-off-by: Paul Parsons Signed-off-by: Anton Vorontsov --- diff --git a/drivers/power/ds2760_battery.c b/drivers/power/ds2760_battery.c index aa60e3791754..f2c9cc33c0f9 100644 --- a/drivers/power/ds2760_battery.c +++ b/drivers/power/ds2760_battery.c @@ -86,7 +86,11 @@ static int rated_capacities[] = { 920, /* NEC */ 1440, /* Samsung */ 1440, /* BYD */ +#ifdef CONFIG_MACH_H4700 + 1800, /* HP iPAQ hx4700 3.7V 1800mAh (359113-001) */ +#else 1440, /* Lishen */ +#endif 1440, /* NEC */ 2880, /* Samsung */ 2880, /* BYD */