From: Dan Carpenter Date: Tue, 10 Aug 2010 05:37:33 +0000 (+0200) Subject: Staging: iio: signedness bug X-Git-Tag: v2.6.37-rc1~60^2~3^2~800 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=213fd2270450f7b5f98803e58bc25063c249e032;p=pandora-kernel.git Staging: iio: signedness bug i2c_smbus_read_byte_data() returns an s32 type. We need to change "rate" to signed for the error handling to work. Also I changed it to propogate the error code instead of just returning -EINVAL. Other error codes could be -EAGAIN for example. Signed-off-by: Dan Carpenter Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed