]> Pileus Git - ~andy/linux/blobdiff - drivers/power/ds2782_battery.c
Merge branch 'modules' of git://git.kernel.org/pub/scm/linux/kernel/git/rusty/linux...
[~andy/linux] / drivers / power / ds2782_battery.c
index 9b3b4b70f6f3af9c0df15c34dd978303916a3fe9..84d3c43cf2bc83f92ea05c1a381d113f4f7b6375 100644 (file)
@@ -162,7 +162,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)