iio:imu:mpu6050 add explicit mpu9250 support
authorJonathan Cameron <jic23@kernel.org>
Sun, 26 Mar 2017 11:11:00 +0000 (12:11 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sun, 2 Apr 2017 09:12:08 +0000 (10:12 +0100)
commit0c8f492dd7ddf0dd381fa63b76066c0966d8dd73
treecef8d154a4e2702515cbaeeedf549b5403bd8a82
parent3cc17e61d4dd9594fc6a2d15d88bb91f4bc61e75
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>
Documentation/devicetree/bindings/iio/imu/inv_mpu6050.txt
drivers/iio/imu/inv_mpu6050/inv_mpu_core.c
drivers/iio/imu/inv_mpu6050/inv_mpu_i2c.c
drivers/iio/imu/inv_mpu6050/inv_mpu_iio.h
drivers/iio/imu/inv_mpu6050/inv_mpu_spi.c