iio: imu: inv-mpu6050: Fix interrupt pin configuration
authorAdriana Reus <adriana.reus@intel.com>
Fri, 12 Feb 2016 11:44:42 +0000 (13:44 +0200)
committerJonathan Cameron <jic23@kernel.org>
Sat, 13 Feb 2016 20:52:47 +0000 (20:52 +0000)
commitc278ac0ecd198a3a1be5b2f1159ffec2e3107ecb
treee420c190e6cd77dbcacea6c463b942d7845cd8ba
parentf836c45922446df872250a12dd08e48978aceb2f
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>
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h