commit | 8434e7856551015650f62afa48e8f9e9b4bf80f2 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@ingics.com> | Fri Dec 14 12:07:00 2012 +0000 |
committer | Jonathan Cameron <jic23@kernel.org> | Thu Dec 27 11:00:19 2012 +0000 |
tree | 83b2a3302a4b54bb4abba2ba52b10ec4495568d3 | |
parent | 0ce2fdaa97c6a8d84e9fce3d920a45a493145623 [diff] |
iio: dac: ad5624r_spi: 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>