[PATCH 2/6] iio: dac: ad5380: Don't set error code to st->vref

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

[PATCH 2/6] iio: dac: ad5380: Don't set error code to st-vref

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