diff options
Diffstat (limited to 'drivers/iio/imu/st_lsm6ds3/st_lsm6ds3.h')
| -rw-r--r-- | drivers/iio/imu/st_lsm6ds3/st_lsm6ds3.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3.h b/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3.h index afd696effc2..3ba58d87a29 100644 --- a/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3.h +++ b/drivers/iio/imu/st_lsm6ds3/st_lsm6ds3.h @@ -14,6 +14,7 @@ #include <linux/types.h> #include <linux/iio/trigger.h> #include <linux/wakelock.h> +#include <linux/regulator/consumer.h> #ifdef CONFIG_ST_LSM6DS3_IIO_MASTER_SUPPORT #include <linux/i2c.h> #endif /* CONFIG_ST_LSM6DS3_IIO_MASTER_SUPPORT */ @@ -193,6 +194,8 @@ struct lsm6ds3_data { const struct st_lsm6ds3_transfer_function *tf; struct st_lsm6ds3_transfer_buffer tb; + + struct regulator *reg_accel; }; struct st_lsm6ds3_transfer_function { @@ -226,6 +229,8 @@ int st_lsm6ds3_set_fifo_mode(struct lsm6ds3_data *cdata, enum fifo_mode fm); int st_lsm6ds3_reconfigure_fifo(struct lsm6ds3_data *cdata, bool disable_irq_and_flush); +int st_lsm6ds3_reset(struct lsm6ds3_data *cdata, bool hard_reset); + ssize_t st_lsm6ds3_sysfs_get_hw_fifo_lenght(struct device *dev, struct device_attribute *attr, char *buf); ssize_t st_lsm6ds3_sysfs_flush_fifo(struct device *dev, |