diff options
author | Adriana Reus <adriana.reus@intel.com> | 2016-02-12 14:44:42 +0300 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2016-02-13 23:52:47 +0300 |
commit | c278ac0ecd198a3a1be5b2f1159ffec2e3107ecb (patch) | |
tree | e420c190e6cd77dbcacea6c463b942d7845cd8ba /drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h | |
parent | f836c45922446df872250a12dd08e48978aceb2f (diff) | |
download | linux-c278ac0ecd198a3a1be5b2f1159ffec2e3107ecb.tar.xz |
iio: imu: inv-mpu6050: Fix interrupt pin configuration
The select/deselect_bypass duo writes the irq number into the interrupt
configuration register.
If there is a i2c slave device connected to the mpu (eg. a magnetometer)
then this can hinder interrupt delivery for the accelerometer and
gyroscope.
Set this register to the default configuration.
Signed-off-by: Adriana Reus <adriana.reus@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h')
-rw-r--r-- | drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h b/drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h index db0a4a2758ab..455b99db64ba 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h @@ -185,6 +185,7 @@ struct inv_mpu6050_state { #define INV_MPU6050_REG_INT_PIN_CFG 0x37 #define INV_MPU6050_BIT_BYPASS_EN 0x2 +#define INV_MPU6050_INT_PIN_CFG 0 /* init parameters */ #define INV_MPU6050_INIT_FIFO_RATE 50 |