From: Krzysztof Kozlowski Date: Tue, 24 Feb 2015 09:54:43 +0000 (+0100) Subject: power_supply: max77693: Properly handle error conditions X-Git-Tag: omap-for-v4.2/o2_dc~164^2~52 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ed522b390f423f9cb21ad3414fbe281a32e3ec5;p=pandora-kernel.git power_supply: max77693: Properly handle error conditions Re-work and fix handling of errors when retrieving power supply properties: 1. Return errno values directly from get_property() instead of storing 'unknown' as intval for given property. 2. Handle regmap_read() errors when getting 'online' and 'present' proprties and return errno code. Previously the regmap_read() return code was ignored so an uninitialized value from the stack could be used for calculating the property. Signed-off-by: Krzysztof Kozlowski Signed-off-by: Sebastian Reichel --- Reading git-diff-tree failed