From: Ryan Mallon Date: Tue, 15 Jun 2010 00:44:59 +0000 (+1200) Subject: ds2782_battery: Fix ds2782_get_capacity return value X-Git-Tag: v2.6.35-rc6~25^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2d31757c87a741823f77daaa07eeb8d56be63943;p=platform%2Fkernel%2Flinux-3.10.git ds2782_battery: Fix ds2782_get_capacity return value The ds2782_get_capacity function should return 0 on success, not the capacity value. Signed-off-by: Ryan Mallon Signed-off-by: Anton Vorontsov --- diff --git a/drivers/power/ds2782_battery.c b/drivers/power/ds2782_battery.c index d762a0c..2afbeec 100644 --- a/drivers/power/ds2782_battery.c +++ b/drivers/power/ds2782_battery.c @@ -163,7 +163,7 @@ static int ds2782_get_capacity(struct ds278x_info *info, int *capacity) if (err) return err; *capacity = raw; - return raw; + return 0; } static int ds2786_get_current(struct ds278x_info *info, int *current_uA)