summaryrefslogtreecommitdiff
path: root/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/imu/st_lsm6ds3/st_lsm6ds3.h')
-rw-r--r--drivers/iio/imu/st_lsm6ds3/st_lsm6ds3.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3.h b/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3.h
index ba971628496..4c6fc426fc4 100644
--- a/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3.h
+++ b/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3.h
@@ -137,12 +137,14 @@ struct lsm6ds3_data {
int wake_lock_initialized;
struct wake_lock wlock;
struct wake_lock tap_wlock;
+#define RESUME_NORMAL 1
+#define RESUME_FROM_INACTIVE 3
u8 first_irq_from_resume;
u8 reg_read;
#define SIXD_MASK_VALID_BITS (0x3f)
u8 sixd_mask;
u8 int1_save;
-
+ int inactive_wait;
u8 *fifo_data;
u8 sensors_enabled;
u8 gyro_selftest_status;
@@ -212,7 +214,7 @@ struct lsm6ds3_sensor_data {
u8 sindex;
u8 *buffer_data;
};
-
+void st_lsm6ds3_set_inactive_detection(struct lsm6ds3_data *cdata, int enable);
int st_lsm6ds3_write_data_with_mask(struct lsm6ds3_data *cdata,
u8 reg_addr, u8 mask, u8 data, bool b_lock);