diff options
author | Krzysztof Kozlowski <k.kozlowski@samsung.com> | 2015-02-24 10:54:45 +0100 |
---|---|---|
committer | Sebastian Reichel <sre@kernel.org> | 2015-02-25 21:45:46 +0100 |
commit | dd18a6634606cbaa19ae1e85f5bcb65b9f7dfce4 (patch) | |
tree | 2c3bfcd64caa1049ad05430aff7bab612a922563 /lib/digsig.c | |
parent | 7524741f839e10451b072d2c9fdf525e587ecd46 (diff) | |
download | linux-dd18a6634606cbaa19ae1e85f5bcb65b9f7dfce4.tar.bz2 |
power_supply: max14577: 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 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 'lib/digsig.c')
0 files changed, 0 insertions, 0 deletions