]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
iio: accel: bmc150: set low default thresholds
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Sat, 11 Oct 2014 03:35:33 +0000 (20:35 -0700)
committerJonathan Cameron <jic23@kernel.org>
Sun, 16 Nov 2014 20:25:00 +0000 (20:25 +0000)
Set the threshold to low by default. With this thresholds any movement
on the device with this sensor will generate event.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/accel/bmc150-accel.c

index 352d9596366169c3f8767c362065a830edbf4ec5..513bd6d14293d80e5ce502080a092b5f970fe840 100644 (file)
@@ -95,9 +95,9 @@
 #define BMC150_ACCEL_SLOPE_THRES_MASK          0xFF
 
 /* Slope duration in terms of number of samples */
-#define BMC150_ACCEL_DEF_SLOPE_DURATION        2
+#define BMC150_ACCEL_DEF_SLOPE_DURATION                1
 /* in terms of multiples of g's/LSB, based on range */
-#define BMC150_ACCEL_DEF_SLOPE_THRESHOLD       5
+#define BMC150_ACCEL_DEF_SLOPE_THRESHOLD       1
 
 #define BMC150_ACCEL_REG_XOUT_L                0x02