diff options
author | Crestez Dan Leonard | 2016-04-20 15:15:13 +0200 |
---|---|---|
committer | Jonathan Cameron | 2016-04-25 21:19:38 +0200 |
commit | fbced0e9465152d628ece5fd0d11de4e7a1f5ce5 (patch) | |
tree | 48f604f4be4549935956ef08fae65fe3fb9e079a /drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | |
parent | iio: inv_mpu6050: Add spi_device_id for INV_MPU6500 (diff) | |
download | kernel-qcow2-linux-fbced0e9465152d628ece5fd0d11de4e7a1f5ce5.tar.gz kernel-qcow2-linux-fbced0e9465152d628ece5fd0d11de4e7a1f5ce5.tar.xz kernel-qcow2-linux-fbced0e9465152d628ece5fd0d11de4e7a1f5ce5.zip |
iio: inv_mpu6050: Add explicit support for MPU9150
This device is a package containing a MPU6050-like sensor and an AK8975
magnetometer. The magnetometer component is supported by the existing
ak8975 driver.
This patch also rephrases the Kconfig descriptions.
Signed-off-by: Crestez Dan Leonard <leonard.crestez@intel.com>
Acked-by: Ge Gao <ggao@invensense.com>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/imu/inv_mpu6050/inv_mpu_core.c')
-rw-r--r-- | drivers/iio/imu/inv_mpu6050/inv_mpu_core.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c index 4152f2fcf598..b269b375ca34 100644 --- a/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c +++ b/drivers/iio/imu/inv_mpu6050/inv_mpu_core.c @@ -108,6 +108,12 @@ static const struct inv_mpu6050_hw hw_info[] = { .reg = ®_set_6050, .config = &chip_config_6050, }, + { + .whoami = INV_MPU9150_WHOAMI_VALUE, + .name = "MPU9150", + .reg = ®_set_6050, + .config = &chip_config_6050, + }, }; int inv_mpu6050_switch_engine(struct inv_mpu6050_state *st, bool en, u32 mask) |