iio: dac: ad5791: Don't set error code to [pos|neg]_voltage_uv
authorAxel Lin <axel.lin@ingics.com>
Fri, 14 Dec 2012 07:55:00 +0000 (07:55 +0000)
committerJonathan Cameron <jic23@kernel.org>
Thu, 27 Dec 2012 11:00:14 +0000 (11:00 +0000)
commit7e2dcc69824288916b55f90cd6db4992a0d95374
treeb33fb10c8239b56af42901b3c2db10cd405b7d4a
parent272cc9c8b5d0dffe9fb03e6c0ab3da2fde9c20e9
iio: dac: ad5791: Don't set error code to [pos|neg]_voltage_uv

regulator_get_voltage() may return negative error code.
Don't set error code to to pos_voltage_uv and neg_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>
drivers/iio/dac/ad5791.c