aboutsummaryrefslogtreecommitdiff
path: root/drivers/iio/dac/mcp4725.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2012-06-08 09:54:32 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-06-12 14:48:39 -0700
commit1a135d1ab5e3122ab2a50cbbdb9cb1504c1f421f (patch)
tree50de49246b892dd7152e434b7603f1fb3489ff7c /drivers/iio/dac/mcp4725.c
parente86ee142a223ec85efda7c66b3e99fe79aa8cc4f (diff)
iio: frequency: adf4350: using an uninitialized variable
GCC complains that we use an uninitialized variable if the user passes an invalid parameter to adf4350_read(). I decided that we should return -EINVAL instead in that case. However, when I looked up at adf4350_write() it returned -ENODEV for that condition. In the end, I decided the -EINVAL was the right thing and I change adf4350_write() to match. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/iio/dac/mcp4725.c')
0 files changed, 0 insertions, 0 deletions