Dan Carpenter 4f3bcd878f 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
2014-06-14 15:31:20 +01:00
..
2013-08-03 18:40:39 +01:00
2014-04-07 10:24:18 -07:00
2014-02-18 08:44:11 +00:00
2013-08-03 18:40:41 +01:00
2013-12-02 16:39:07 -08:00
2014-03-01 21:04:29 +00:00