aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@kernel.org>2017-03-26 12:11:00 +0100
committerJonathan Cameron <jic23@kernel.org>2017-04-02 10:12:08 +0100
commit0c8f492dd7ddf0dd381fa63b76066c0966d8dd73 (patch)
treecef8d154a4e2702515cbaeeedf549b5403bd8a82 /drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c
parentiio:imu:mpu6050 update i2c bindings to reflect i2c-gate and supported parts (diff)
downloadlinux-dev-0c8f492dd7ddf0dd381fa63b76066c0966d8dd73.tar.xz
linux-dev-0c8f492dd7ddf0dd381fa63b76066c0966d8dd73.zip
iio:imu:mpu6050 add explicit mpu9250 support
The mpu9250 is a SIP containing an mpu6500 and an ak8975. If this was all there was too it there would be no need for explicit handling in the driver. Arguably the bindings would also only reflect the presence of an mpu6500 with the ak8975 hanging off it, as the kernel doesn't care that they are in one package. However, the WHOAMI value changes as well so best to add explicit support. Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c')
-rw-r--r--drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c
index 6e6476dfa188..74506e5ac0db 100644
--- a/drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c
+++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c
@@ -82,6 +82,7 @@ static const struct spi_device_id inv_mpu_id[] = {
{"mpu6000", INV_MPU6000},
{"mpu6500", INV_MPU6500},
{"mpu9150", INV_MPU9150},
+ {"mpu9250", INV_MPU9250},
{"icm20608", INV_ICM20608},
{}
};