summaryrefslogtreecommitdiffstats
path: root/lis3-improve-handling-of-null-rate.patch
diff options
context:
space:
mode:
authorJustin M. Forbes <jforbes@redhat.com>2012-10-05 10:45:58 -0500
committerJustin M. Forbes <jforbes@redhat.com>2012-10-05 10:45:58 -0500
commitfc85362a27e6f8ea343d1e201a01c311781d2a09 (patch)
tree86ea45763af93caa4d4f41697766226516389a87 /lis3-improve-handling-of-null-rate.patch
parent386d01e31aa3706035aaf43037d14154009df22a (diff)
downloadkernel-fc85362a27e6f8ea343d1e201a01c311781d2a09.tar.gz
kernel-fc85362a27e6f8ea343d1e201a01c311781d2a09.tar.xz
kernel-fc85362a27e6f8ea343d1e201a01c311781d2a09.zip
Linux v3.6-6670-gecefbd9
Diffstat (limited to 'lis3-improve-handling-of-null-rate.patch')
-rw-r--r--lis3-improve-handling-of-null-rate.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/lis3-improve-handling-of-null-rate.patch b/lis3-improve-handling-of-null-rate.patch
index 98512564a..30ed26d80 100644
--- a/lis3-improve-handling-of-null-rate.patch
+++ b/lis3-improve-handling-of-null-rate.patch
@@ -28,9 +28,9 @@ index 35c67e0..42dce2a 100644
-static int lis3_3dc_rates[16] = {0, 1, 10, 25, 50, 100, 200, 400, 1600, 5000};
+/* LIS3DC: 0 = power off, above 9 = undefined */
+static int lis3_3dc_rates[16] = {0, 1, 10, 25, 50, 100, 200, 400, 1600, 5000, -1, -1, -1, -1, -1, -1};
+ static int lis3_3dlh_rates[4] = {50, 100, 400, 1000};
/* ODR is Output Data Rate */
- static int lis3lv02d_get_odr(struct lis3lv02d *lis3)
@@ -202,12 +203,11 @@ static int lis3lv02d_get_odr(struct lis3lv02d *lis3)
return lis3->odrs[(ctrl >> shift)];
}