diff options
author | Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> | 2014-10-10 23:35:33 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2014-11-16 15:25:00 -0500 |
commit | 9e8e228f2bf066c37eeee7c25b810cad3235427a (patch) | |
tree | ec85da05c4f1768eb6d73440572e2475a7f12f0d | |
parent | 1174124c45209796b1a2853a411cf47cbfcaf7da (diff) |
iio: accel: bmc150: set low default thresholds
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>
-rw-r--r-- | drivers/iio/accel/bmc150-accel.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/accel/bmc150-accel.c b/drivers/iio/accel/bmc150-accel.c index 352d95963661..513bd6d14293 100644 --- a/drivers/iio/accel/bmc150-accel.c +++ b/drivers/iio/accel/bmc150-accel.c | |||
@@ -95,9 +95,9 @@ | |||
95 | #define BMC150_ACCEL_SLOPE_THRES_MASK 0xFF | 95 | #define BMC150_ACCEL_SLOPE_THRES_MASK 0xFF |
96 | 96 | ||
97 | /* Slope duration in terms of number of samples */ | 97 | /* Slope duration in terms of number of samples */ |
98 | #define BMC150_ACCEL_DEF_SLOPE_DURATION 2 | 98 | #define BMC150_ACCEL_DEF_SLOPE_DURATION 1 |
99 | /* in terms of multiples of g's/LSB, based on range */ | 99 | /* in terms of multiples of g's/LSB, based on range */ |
100 | #define BMC150_ACCEL_DEF_SLOPE_THRESHOLD 5 | 100 | #define BMC150_ACCEL_DEF_SLOPE_THRESHOLD 1 |
101 | 101 | ||
102 | #define BMC150_ACCEL_REG_XOUT_L 0x02 | 102 | #define BMC150_ACCEL_REG_XOUT_L 0x02 |
103 | 103 | ||