Skip to content

Commit

Permalink
iio: accel: bmc150: set low default thresholds
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Srinivas Pandruvada authored and Jonathan Cameron committed Nov 16, 2014
1 parent 1174124 commit 9e8e228
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/iio/accel/bmc150-accel.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 9e8e228

Please sign in to comment.