From: Axel Lin Date: Fri, 14 Dec 2012 12:08:00 +0000 (+0000) Subject: iio: dac: ad5686: Don't set error code to voltage_uv X-Git-Tag: v3.8-rc4~24^2~20^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=359570ad3fcfcc3a3031b3a5e01bfb616233eca0;p=pandora-kernel.git 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 Acked-by: Lars-Peter Clausen Signed-off-by: Jonathan Cameron --- Reading git-diff-tree failed