Skip to content

Commit

Permalink
ds2782_battery: Fix ds2782_get_capacity return value
Browse files Browse the repository at this point in the history
The ds2782_get_capacity function should return 0 on success, not the
capacity value.

Signed-off-by: Ryan Mallon <ryan@bluewatersys.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
  • Loading branch information
Ryan Mallon authored and Anton Vorontsov committed Jun 21, 2010
1 parent 7e27d6e commit 2d31757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/power/ds2782_battery.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2d31757

Please sign in to comment.