mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Signed-off-by: Anton Vorontsov <[email protected]>
This commit is contained in:
parent
7e27d6e778
commit
2d31757c87
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue