summaryrefslogtreecommitdiff
path: root/drivers/iio/dac/ad5791.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2012-12-14 07:48:00 (GMT)
committerJonathan Cameron <jic23@kernel.org>2012-12-27 11:00:08 (GMT)
commit272cc9c8b5d0dffe9fb03e6c0ab3da2fde9c20e9 (patch)
tree02c2eb8f4844da0f695bffda4ddead4d2aa98008 /drivers/iio/dac/ad5791.c
parent36ce0c1c3ab7ea54fa6c2b3a0803c7ab0adcefbf (diff)
downloadlinux-fsl-qoriq-272cc9c8b5d0dffe9fb03e6c0ab3da2fde9c20e9.tar.xz
iio: dac: ad5380: Don't set error code to st->vref
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.lin@ingics.com> Acked-by: Lars-Peter Clausen <lars@metafoo.de> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/dac/ad5791.c')
0 files changed, 0 insertions, 0 deletions