From: Michael Hennerich Date: Fri, 29 Apr 2011 12:17:03 +0000 (+0200) Subject: IIO: GYRO: ADXRS450: Fix sign issues, properly shift results and limit values X-Git-Tag: v3.0-rc1~336^2~619 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7dd04eb04e0cf6593ff8ee30e9a4a403c1256834;p=pandora-kernel.git IIO: GYRO: ADXRS450: Fix sign issues, properly shift results and limit values RATE and QUADRATURE_CORRECTION data is formatted as a twos complement number, and therefore must be handled as type signed short. TEMP result should be properly shifted. Dynamic Null Correction is a 10-bit signed number. Signed-off-by: Michael Hennerich Acked-by: Jonathan Cameron Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed