From: Daniel Mack Date: Wed, 15 Jul 2009 16:20:41 +0000 (+0200) Subject: ds2760_battery: handle full_active_uAh == 0 case correctly X-Git-Tag: v2.6.32-rc1~158^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=25f2bfa62ae77820a8185734c4a2ab7f3971a2fc;p=pandora-kernel.git ds2760_battery: handle full_active_uAh == 0 case correctly In systems where the battery monitor is not part of the battery pack and is hence not bootstrapped with sane values, the full_active_uAh is likely to be zero. Handle that case by defaulting to the rated_capacity information which can be passed to the driver using the new module parameter. Signed-off-by: Daniel Mack Cc: Szabolcs Gyurko Acked-by: Matt Reimer Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed