commit | 359570ad3fcfcc3a3031b3a5e01bfb616233eca0 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Fri Dec 14 12:08:00 2012 +0000 |
committer | Jonathan Cameron <jic23@kernel.org> | Thu Dec 27 11:00:22 2012 +0000 |
tree | 3a0f820aa214f71b875f6583db356fad15011250 | |
parent | 8434e7856551015650f62afa48e8f9e9b4bf80f2 [diff] |
iio: dac: ad5686: Don't set error code to voltage_uv regulator_get_voltage() may return negative error code. Add error checking to avoid setting error code to voltage_uv. Signed-off-by: Axel Lin <axel.lin@ingics.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>