Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9e8e228f authored by Srinivas Pandruvada's avatar Srinivas Pandruvada Committed by Jonathan Cameron
Browse files

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: default avatarSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 1174124c
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -95,9 +95,9 @@
#define BMC150_ACCEL_SLOPE_THRES_MASK		0xFF
#define BMC150_ACCEL_SLOPE_THRES_MASK		0xFF


/* Slope duration in terms of number of samples */
/* 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 */
/* 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
#define BMC150_ACCEL_REG_XOUT_L		0x02