Skip to content

Commit 19f0f0a

Browse files
committed
Merge git://git.infradead.org/users/cbou/battery-2.6.35
* git://git.infradead.org/users/cbou/battery-2.6.35: ds2782_battery: Fix ds2782_get_capacity return value
2 parents 620d0be + 2d31757 commit 19f0f0a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: drivers/power/ds2782_battery.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ static int ds2782_get_capacity(struct ds278x_info *info, int *capacity)
163163
if (err)
164164
return err;
165165
*capacity = raw;
166-
return raw;
166+
return 0;
167167
}
168168

169169
static int ds2786_get_current(struct ds278x_info *info, int *current_uA)

0 commit comments

Comments
 (0)