commit | 7dd04eb04e0cf6593ff8ee30e9a4a403c1256834 | [log] [tgz] |
---|---|---|
author | Michael Hennerich <michael.hennerich@analog.com> | Fri Apr 29 14:17:03 2011 +0200 |
committer | Greg Kroah-Hartman <gregkh@suse.de> | Tue May 03 11:40:02 2011 -0700 |
tree | 6a9540479bc5d5e68846efbddf1a315efcaa8978 | |
parent | 8ffc4e72131eb0103abf2be382b56f4fac0123c8 [diff] |
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 <michael.hennerich@analog.com> Acked-by: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>