Re: [PATCH 1/5] power_supply: max77693: Properly handle error conditions

2015-02-25 Thread Sebastian Reichel
Hi, On Tue, Feb 24, 2015 at 10:54:43AM +0100, Krzysztof Kozlowski wrote: > 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

Re: [PATCH 1/5] power_supply: max77693: Properly handle error conditions

2015-02-25 Thread Sebastian Reichel
Hi, On Tue, Feb 24, 2015 at 10:54:43AM +0100, Krzysztof Kozlowski wrote: 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()

[PATCH 1/5] power_supply: max77693: Properly handle error conditions

2015-02-24 Thread Krzysztof Kozlowski
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.

[PATCH 1/5] power_supply: max77693: Properly handle error conditions

2015-02-24 Thread Krzysztof Kozlowski
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.