projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e27d6e
)
ds2782_battery: Fix ds2782_get_capacity return value
author
Ryan Mallon
<ryan@bluewatersys.com>
Tue, 15 Jun 2010 00:44:59 +0000
(12:44 +1200)
committer
Anton Vorontsov
<cbouatmailru@gmail.com>
Mon, 21 Jun 2010 15:13:36 +0000
(19:13 +0400)
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>
drivers/power/ds2782_battery.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/power/ds2782_battery.c
b/drivers/power/ds2782_battery.c
index d762a0cbc6af40b2c4aa58bde75e18e514fcd658..2afbeec8b7913f504a04beed44fc9ddee703c51b 100644
(file)
--- 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)