ab8500_fg: Overflow in current calculation
authorPaer-Olof Haakansson <par-olof.hakansson@stericsson.com>
Fri, 11 Jan 2013 13:13:05 +0000 (13:13 +0000)
committerAnton Vorontsov <anton@enomsg.org>
Wed, 16 Jan 2013 01:44:44 +0000 (17:44 -0800)
commitf902dadc123376b973e5f9cb216a22675a2a9181
tree57120e6d0891005a173dc1b37d53cd19e805ad77
parent4b45f4a9cd4eae34b23becb686f2c2a637d844d3
ab8500_fg: Overflow in current calculation

When calculating the average current the nominator will
overflow when the charging current is high.

Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Henrik Sölver <henrik.solver@stericsson.com>
Reviewed-by: Par-Olof HAKANSSON <par-olof.hakansson@stericsson.com>
Reviewed-by: Jonas ABERG <jonas.aberg@stericsson.com>
Tested-by: Par-Olof HAKANSSON <par-olof.hakansson@stericsson.com>
Signed-off-by: Anton Vorontsov <anton@enomsg.org>
drivers/power/ab8500_fg.c