From: Daniel Mack Date: Fri, 24 Jul 2009 13:08:11 +0000 (+0200) Subject: ds2760_battery: Fix integer overflow for time_to_empty_now X-Git-Tag: v2.6.32-rc1~158^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b0525b48f06714e8d5cf6a3266261b71de8d6dd4;p=pandora-kernel.git ds2760_battery: Fix integer overflow for time_to_empty_now On the device we're currently developing, battery sizes of ~2.8Ah and current flow of ~600mA are typical. With that values, the life_sec computation overflows due to the multiplication by 3600. Signed-off-by: Daniel Mack Cc: Szabolcs Gyurko Cc: Matt Reimer Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed