diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2014-11-06 10:13:00 +0100 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-06-14 16:31:20 +0200 |
commit | 4f3bcd878f1d3c730fe00f619b7260c6125d49eb (patch) | |
tree | a1cca2b92384c509819893f9931fd8b48d8c824c /sound/pci | |
parent | iio: mxs-lradc: fix divider (diff) | |
download | linux-4f3bcd878f1d3c730fe00f619b7260c6125d49eb.tar.xz linux-4f3bcd878f1d3c730fe00f619b7260c6125d49eb.zip |
iio: adc: at91: signedness bug in at91_adc_get_trigger_value_by_name()
at91_adc_get_trigger_value_by_name() was returning -ENOMEM truncated to
a positive u8 and that doesn't work. I've changed it to int and
refactored it to preserve the error code.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Tested-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Cc: Stable@vger.kernel.org
Diffstat (limited to 'sound/pci')
0 files changed, 0 insertions, 0 deletions