diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-02-24 10:54:43 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-02-25 21:45:46 +0100 |
commit | 1ed522b390f423f9cb21ad3414fbe281a32e3ec5 (patch) | |
tree | 5839ccda4f6fa05523c0091cb7e705fffab2e4ab /drivers/vlynq | |
parent | 213feb51e5f5bc721fb1b2515a7493559c1a5112 (diff) |
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 <k.kozlowski@samsung.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Diffstat (limited to 'drivers/vlynq')
0 files changed, 0 insertions, 0 deletions