]> bbs.cooldavid.org Git - net-next-2.6.git/commit
ds2782_battery: Fix ds2782_get_capacity return value
authorRyan Mallon <ryan@bluewatersys.com>
Tue, 15 Jun 2010 00:44:59 +0000 (12:44 +1200)
committerAnton Vorontsov <cbouatmailru@gmail.com>
Mon, 21 Jun 2010 15:13:36 +0000 (19:13 +0400)
commit2d31757c87a741823f77daaa07eeb8d56be63943
tree4e3d5131a56b2d95a009fd41532e79da1c8b77ef
parent7e27d6e778cd87b6f2415515d7127eba53fe5d02
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 <ryan@bluewatersys.com>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/ds2782_battery.c