From: Dan Carpenter Date: Thu, 6 Nov 2014 09:13:00 +0000 (+0000) Subject: iio: adc: at91: signedness bug in at91_adc_get_trigger_value_by_name() X-Git-Tag: omap-for-v3.16/fixes-rc4~75^2~3^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f3bcd878f1d3c730fe00f619b7260c6125d49eb;p=pandora-kernel.git 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 Acked-by: Alexandre Belloni Tested-by: Alexandre Belloni Signed-off-by: Jonathan Cameron Cc: Stable@vger.kernel.org --- Reading git-diff-tree failed