[PATCH 4/6] iio: dac: ad5624r_spi: Don't set error code to voltage_uv

2012-12-13 Thread Axel Lin
regulator_get_voltage() may return negative error code. Add error checking to avoid setting error code to voltage_uv. Signed-off-by: Axel Lin --- drivers/iio/dac/ad5624r_spi.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/drivers/iio/dac/ad5624r_spi.c

[PATCH 4/6] iio: dac: ad5624r_spi: Don't set error code to voltage_uv

2012-12-13 Thread Axel Lin
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@ingics.com --- drivers/iio/dac/ad5624r_spi.c |6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git